{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import os\n",
    "os.chdir('../')\n",
    "\n",
    "import DeepPurpose.DTI as models\n",
    "from DeepPurpose.utils import *\n",
    "from DeepPurpose.dataset import *"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Beginning Processing...\n",
      "Beginning to extract zip file...\n",
      "Done!\n",
      "in total: 118254 drug-target pairs\n",
      "encoding drug...\n",
      "unique drugs: 2068\n",
      "drug encoding finished...\n",
      "encoding protein...\n",
      "unique target sequence: 229\n",
      "protein encoding finished...\n",
      "splitting dataset...\n",
      "Done.\n"
     ]
    }
   ],
   "source": [
    "X_drug, X_target, y = load_process_KIBA('./data/', binary=False)\n",
    "\n",
    "drug_encoding = 'Morgan'\n",
    "target_encoding = 'CNN'\n",
    "train, val, test = data_process(X_drug, X_target, y, \n",
    "                                drug_encoding, target_encoding, \n",
    "                                split_method='random',frac=[0.7,0.1,0.2], random_seed = 1)\n",
    "\n",
    "# use the parameters setting provided in the paper: https://arxiv.org/abs/1801.10193\n",
    "config = generate_config(drug_encoding = drug_encoding, \n",
    "                         target_encoding = target_encoding, \n",
    "                         cls_hidden_dims = [1024,1024,512], \n",
    "                         train_epoch = 100, \n",
    "                         LR = 0.001, \n",
    "                         batch_size = 256,\n",
    "                         cnn_target_filters = [32,64,96],\n",
    "                         cnn_target_kernels = [4,8,12]\n",
    "                        )"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Let's use 1 GPU!\n",
      "--- Data Preparation ---\n",
      "--- Go for Training ---\n",
      "Training at Epoch 1 iteration 0 with loss 142.235. Total time 0.00055 hours\n",
      "Training at Epoch 1 iteration 100 with loss 0.94045. Total time 0.01305 hours\n",
      "Training at Epoch 1 iteration 200 with loss 0.63405. Total time 0.025 hours\n",
      "Training at Epoch 1 iteration 300 with loss 0.60044. Total time 0.03694 hours\n",
      "Validation at Epoch 1 , MSE: 0.47725 , Pearson Correlation: 0.60461 with p-value: 0.0 , Concordance Index: 0.71790\n",
      "Training at Epoch 2 iteration 0 with loss 0.68283. Total time 0.04555 hours\n",
      "Training at Epoch 2 iteration 100 with loss 0.75881. Total time 0.05777 hours\n",
      "Training at Epoch 2 iteration 200 with loss 0.62654. Total time 0.07 hours\n",
      "Training at Epoch 2 iteration 300 with loss 0.41064. Total time 0.08222 hours\n",
      "Validation at Epoch 2 , MSE: 0.39753 , Pearson Correlation: 0.65979 with p-value: 0.0 , Concordance Index: 0.75692\n",
      "Training at Epoch 3 iteration 0 with loss 0.54240. Total time 0.09055 hours\n",
      "Training at Epoch 3 iteration 100 with loss 0.60198. Total time 0.10305 hours\n",
      "Training at Epoch 3 iteration 200 with loss 0.63948. Total time 0.11527 hours\n",
      "Training at Epoch 3 iteration 300 with loss 0.53111. Total time 0.1275 hours\n",
      "Validation at Epoch 3 , MSE: 0.50724 , Pearson Correlation: 0.67318 with p-value: 0.0 , Concordance Index: 0.76512\n",
      "Training at Epoch 4 iteration 0 with loss 0.65466. Total time 0.13583 hours\n",
      "Training at Epoch 4 iteration 100 with loss 0.51787. Total time 0.14833 hours\n",
      "Training at Epoch 4 iteration 200 with loss 0.43914. Total time 0.16027 hours\n",
      "Training at Epoch 4 iteration 300 with loss 0.63442. Total time 0.17277 hours\n",
      "Validation at Epoch 4 , MSE: 0.43783 , Pearson Correlation: 0.67623 with p-value: 0.0 , Concordance Index: 0.76808\n",
      "Training at Epoch 5 iteration 0 with loss 0.62687. Total time 0.18138 hours\n",
      "Training at Epoch 5 iteration 100 with loss 0.53874. Total time 0.19416 hours\n",
      "Training at Epoch 5 iteration 200 with loss 0.55998. Total time 0.20694 hours\n",
      "Training at Epoch 5 iteration 300 with loss 0.52370. Total time 0.21944 hours\n",
      "Validation at Epoch 5 , MSE: 0.43202 , Pearson Correlation: 0.68128 with p-value: 0.0 , Concordance Index: 0.77146\n",
      "Training at Epoch 6 iteration 0 with loss 0.48968. Total time 0.22833 hours\n",
      "Training at Epoch 6 iteration 100 with loss 0.59304. Total time 0.24083 hours\n",
      "Training at Epoch 6 iteration 200 with loss 0.45677. Total time 0.25333 hours\n",
      "Training at Epoch 6 iteration 300 with loss 0.75531. Total time 0.26555 hours\n",
      "Validation at Epoch 6 , MSE: 0.41555 , Pearson Correlation: 0.68069 with p-value: 0.0 , Concordance Index: 0.77140\n",
      "Training at Epoch 7 iteration 0 with loss 0.50352. Total time 0.27416 hours\n",
      "Training at Epoch 7 iteration 100 with loss 0.61556. Total time 0.28666 hours\n",
      "Training at Epoch 7 iteration 200 with loss 0.38061. Total time 0.29916 hours\n",
      "Training at Epoch 7 iteration 300 with loss 0.44105. Total time 0.31138 hours\n",
      "Validation at Epoch 7 , MSE: 0.41725 , Pearson Correlation: 0.68301 with p-value: 0.0 , Concordance Index: 0.77292\n",
      "Training at Epoch 8 iteration 0 with loss 0.51517. Total time 0.31972 hours\n",
      "Training at Epoch 8 iteration 100 with loss 0.50841. Total time 0.33277 hours\n",
      "Training at Epoch 8 iteration 200 with loss 0.46923. Total time 0.34555 hours\n",
      "Training at Epoch 8 iteration 300 with loss 0.64945. Total time 0.35833 hours\n",
      "Validation at Epoch 8 , MSE: 0.37932 , Pearson Correlation: 0.68248 with p-value: 0.0 , Concordance Index: 0.77076\n",
      "Training at Epoch 9 iteration 0 with loss 0.51066. Total time 0.36722 hours\n",
      "Training at Epoch 9 iteration 100 with loss 0.53950. Total time 0.37972 hours\n",
      "Training at Epoch 9 iteration 200 with loss 0.40789. Total time 0.39194 hours\n",
      "Training at Epoch 9 iteration 300 with loss 0.44712. Total time 0.40416 hours\n",
      "Validation at Epoch 9 , MSE: 0.39375 , Pearson Correlation: 0.68409 with p-value: 0.0 , Concordance Index: 0.77177\n",
      "Training at Epoch 10 iteration 0 with loss 0.50659. Total time 0.41277 hours\n",
      "Training at Epoch 10 iteration 100 with loss 0.55432. Total time 0.42527 hours\n",
      "Training at Epoch 10 iteration 200 with loss 0.65189. Total time 0.4375 hours\n",
      "Training at Epoch 10 iteration 300 with loss 0.63270. Total time 0.45 hours\n",
      "Validation at Epoch 10 , MSE: 0.37784 , Pearson Correlation: 0.68217 with p-value: 0.0 , Concordance Index: 0.77257\n",
      "Training at Epoch 11 iteration 0 with loss 0.44117. Total time 0.45833 hours\n",
      "Training at Epoch 11 iteration 100 with loss 0.43851. Total time 0.47111 hours\n",
      "Training at Epoch 11 iteration 200 with loss 0.53032. Total time 0.48333 hours\n",
      "Training at Epoch 11 iteration 300 with loss 0.49034. Total time 0.49555 hours\n",
      "Validation at Epoch 11 , MSE: 0.37928 , Pearson Correlation: 0.68479 with p-value: 0.0 , Concordance Index: 0.77371\n",
      "Training at Epoch 12 iteration 0 with loss 0.45177. Total time 0.50416 hours\n",
      "Training at Epoch 12 iteration 100 with loss 0.51149. Total time 0.51666 hours\n",
      "Training at Epoch 12 iteration 200 with loss 0.67271. Total time 0.52888 hours\n",
      "Training at Epoch 12 iteration 300 with loss 0.43067. Total time 0.54111 hours\n",
      "Validation at Epoch 12 , MSE: 0.38338 , Pearson Correlation: 0.68669 with p-value: 0.0 , Concordance Index: 0.77842\n",
      "Training at Epoch 13 iteration 0 with loss 0.49098. Total time 0.54972 hours\n",
      "Training at Epoch 13 iteration 100 with loss 0.55358. Total time 0.56222 hours\n",
      "Training at Epoch 13 iteration 200 with loss 0.52704. Total time 0.57416 hours\n",
      "Training at Epoch 13 iteration 300 with loss 0.40064. Total time 0.58638 hours\n",
      "Validation at Epoch 13 , MSE: 0.35583 , Pearson Correlation: 0.71362 with p-value: 0.0 , Concordance Index: 0.78512\n",
      "Training at Epoch 14 iteration 0 with loss 0.38204. Total time 0.595 hours\n",
      "Training at Epoch 14 iteration 100 with loss 0.43559. Total time 0.6075 hours\n",
      "Training at Epoch 14 iteration 200 with loss 0.53430. Total time 0.61972 hours\n",
      "Training at Epoch 14 iteration 300 with loss 0.53650. Total time 0.63194 hours\n",
      "Validation at Epoch 14 , MSE: 0.33676 , Pearson Correlation: 0.72565 with p-value: 0.0 , Concordance Index: 0.78215\n",
      "Training at Epoch 15 iteration 0 with loss 0.52765. Total time 0.64027 hours\n",
      "Training at Epoch 15 iteration 100 with loss 0.36429. Total time 0.65305 hours\n",
      "Training at Epoch 15 iteration 200 with loss 0.44191. Total time 0.66527 hours\n",
      "Training at Epoch 15 iteration 300 with loss 0.51651. Total time 0.6775 hours\n",
      "Validation at Epoch 15 , MSE: 0.33698 , Pearson Correlation: 0.73467 with p-value: 0.0 , Concordance Index: 0.79324\n",
      "Training at Epoch 16 iteration 0 with loss 0.37593. Total time 0.68611 hours\n",
      "Training at Epoch 16 iteration 100 with loss 0.57813. Total time 0.69861 hours\n",
      "Training at Epoch 16 iteration 200 with loss 0.58615. Total time 0.71055 hours\n",
      "Training at Epoch 16 iteration 300 with loss 0.36974. Total time 0.72277 hours\n",
      "Validation at Epoch 16 , MSE: 0.36325 , Pearson Correlation: 0.73725 with p-value: 0.0 , Concordance Index: 0.79126\n",
      "Training at Epoch 17 iteration 0 with loss 0.42159. Total time 0.73138 hours\n",
      "Training at Epoch 17 iteration 100 with loss 0.37390. Total time 0.74388 hours\n",
      "Training at Epoch 17 iteration 200 with loss 0.56896. Total time 0.75611 hours\n",
      "Training at Epoch 17 iteration 300 with loss 0.39031. Total time 0.76861 hours\n",
      "Validation at Epoch 17 , MSE: 0.31397 , Pearson Correlation: 0.74458 with p-value: 0.0 , Concordance Index: 0.79580\n",
      "Training at Epoch 18 iteration 0 with loss 0.49368. Total time 0.77694 hours\n",
      "Training at Epoch 18 iteration 100 with loss 0.35921. Total time 0.78972 hours\n",
      "Training at Epoch 18 iteration 200 with loss 0.38002. Total time 0.80194 hours\n",
      "Training at Epoch 18 iteration 300 with loss 0.54702. Total time 0.81416 hours\n",
      "Validation at Epoch 18 , MSE: 0.30907 , Pearson Correlation: 0.74916 with p-value: 0.0 , Concordance Index: 0.80035\n",
      "Training at Epoch 19 iteration 0 with loss 0.39410. Total time 0.82277 hours\n",
      "Training at Epoch 19 iteration 100 with loss 0.40456. Total time 0.83527 hours\n",
      "Training at Epoch 19 iteration 200 with loss 0.50752. Total time 0.8475 hours\n",
      "Training at Epoch 19 iteration 300 with loss 0.38820. Total time 0.85972 hours\n",
      "Validation at Epoch 19 , MSE: 0.52840 , Pearson Correlation: 0.75290 with p-value: 0.0 , Concordance Index: 0.79735\n",
      "Training at Epoch 20 iteration 0 with loss 0.61908. Total time 0.86805 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 20 iteration 100 with loss 0.44241. Total time 0.88083 hours\n",
      "Training at Epoch 20 iteration 200 with loss 0.48267. Total time 0.89305 hours\n",
      "Training at Epoch 20 iteration 300 with loss 0.33817. Total time 0.905 hours\n",
      "Validation at Epoch 20 , MSE: 0.36211 , Pearson Correlation: 0.75598 with p-value: 0.0 , Concordance Index: 0.80399\n",
      "Training at Epoch 21 iteration 0 with loss 0.33789. Total time 0.91361 hours\n",
      "Training at Epoch 21 iteration 100 with loss 0.33211. Total time 0.92611 hours\n",
      "Training at Epoch 21 iteration 200 with loss 0.52422. Total time 0.93833 hours\n",
      "Training at Epoch 21 iteration 300 with loss 0.61085. Total time 0.95027 hours\n",
      "Validation at Epoch 21 , MSE: 0.30611 , Pearson Correlation: 0.75267 with p-value: 0.0 , Concordance Index: 0.80361\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 20 Testing MSE: 0.4131461040234822 , Pearson Correlation: 0.6731547084722148 with p-value: 0.0 , Concordance Index: 0.7431750429162699\n",
      "Training at Epoch 22 iteration 0 with loss 0.35602. Total time 0.96944 hours\n",
      "Training at Epoch 22 iteration 100 with loss 0.38856. Total time 0.98194 hours\n",
      "Training at Epoch 22 iteration 200 with loss 0.33634. Total time 0.99416 hours\n",
      "Training at Epoch 22 iteration 300 with loss 0.40616. Total time 1.00638 hours\n",
      "Validation at Epoch 22 , MSE: 0.37762 , Pearson Correlation: 0.75044 with p-value: 0.0 , Concordance Index: 0.80505\n",
      "Training at Epoch 23 iteration 0 with loss 0.40540. Total time 1.015 hours\n",
      "Training at Epoch 23 iteration 100 with loss 0.37408. Total time 1.02722 hours\n",
      "Training at Epoch 23 iteration 200 with loss 0.33696. Total time 1.03944 hours\n",
      "Training at Epoch 23 iteration 300 with loss 0.37845. Total time 1.05166 hours\n",
      "Validation at Epoch 23 , MSE: 0.29121 , Pearson Correlation: 0.76943 with p-value: 0.0 , Concordance Index: 0.80868\n",
      "Training at Epoch 24 iteration 0 with loss 0.45560. Total time 1.06 hours\n",
      "Training at Epoch 24 iteration 100 with loss 0.31497. Total time 1.0725 hours\n",
      "Training at Epoch 24 iteration 200 with loss 0.27467. Total time 1.08472 hours\n",
      "Training at Epoch 24 iteration 300 with loss 0.42311. Total time 1.09694 hours\n",
      "Validation at Epoch 24 , MSE: 0.28796 , Pearson Correlation: 0.77413 with p-value: 0.0 , Concordance Index: 0.80929\n",
      "Training at Epoch 25 iteration 0 with loss 0.33458. Total time 1.10555 hours\n",
      "Training at Epoch 25 iteration 100 with loss 0.37277. Total time 1.11805 hours\n",
      "Training at Epoch 25 iteration 200 with loss 0.43361. Total time 1.13027 hours\n",
      "Training at Epoch 25 iteration 300 with loss 0.29570. Total time 1.1425 hours\n",
      "Validation at Epoch 25 , MSE: 0.29138 , Pearson Correlation: 0.76657 with p-value: 0.0 , Concordance Index: 0.80347\n",
      "Training at Epoch 26 iteration 0 with loss 0.39262. Total time 1.15083 hours\n",
      "Training at Epoch 26 iteration 100 with loss 0.32376. Total time 1.16361 hours\n",
      "Training at Epoch 26 iteration 200 with loss 0.28363. Total time 1.17611 hours\n",
      "Training at Epoch 26 iteration 300 with loss 0.45162. Total time 1.18861 hours\n",
      "Validation at Epoch 26 , MSE: 0.33628 , Pearson Correlation: 0.77623 with p-value: 0.0 , Concordance Index: 0.81052\n",
      "Training at Epoch 27 iteration 0 with loss 0.32667. Total time 1.19777 hours\n",
      "Training at Epoch 27 iteration 100 with loss 0.35965. Total time 1.21 hours\n",
      "Training at Epoch 27 iteration 200 with loss 0.26597. Total time 1.22222 hours\n",
      "Training at Epoch 27 iteration 300 with loss 0.38679. Total time 1.23416 hours\n",
      "Validation at Epoch 27 , MSE: 0.30443 , Pearson Correlation: 0.78507 with p-value: 0.0 , Concordance Index: 0.81610\n",
      "Training at Epoch 28 iteration 0 with loss 0.40618. Total time 1.24333 hours\n",
      "Training at Epoch 28 iteration 100 with loss 0.38928. Total time 1.25555 hours\n",
      "Training at Epoch 28 iteration 200 with loss 0.29831. Total time 1.26777 hours\n",
      "Training at Epoch 28 iteration 300 with loss 0.44613. Total time 1.27972 hours\n",
      "Validation at Epoch 28 , MSE: 0.26992 , Pearson Correlation: 0.78769 with p-value: 0.0 , Concordance Index: 0.81924\n",
      "Training at Epoch 29 iteration 0 with loss 0.28347. Total time 1.28861 hours\n",
      "Training at Epoch 29 iteration 100 with loss 0.37317. Total time 1.30111 hours\n",
      "Training at Epoch 29 iteration 200 with loss 0.35352. Total time 1.31305 hours\n",
      "Training at Epoch 29 iteration 300 with loss 0.35006. Total time 1.325 hours\n",
      "Validation at Epoch 29 , MSE: 0.28265 , Pearson Correlation: 0.79636 with p-value: 0.0 , Concordance Index: 0.81891\n",
      "Training at Epoch 30 iteration 0 with loss 0.28800. Total time 1.33361 hours\n",
      "Training at Epoch 30 iteration 100 with loss 0.29237. Total time 1.34638 hours\n",
      "Training at Epoch 30 iteration 200 with loss 0.25865. Total time 1.35861 hours\n",
      "Training at Epoch 30 iteration 300 with loss 0.27363. Total time 1.37083 hours\n",
      "Validation at Epoch 30 , MSE: 0.28378 , Pearson Correlation: 0.79635 with p-value: 0.0 , Concordance Index: 0.81906\n",
      "Training at Epoch 31 iteration 0 with loss 0.36418. Total time 1.37944 hours\n",
      "Training at Epoch 31 iteration 100 with loss 0.32274. Total time 1.39166 hours\n",
      "Training at Epoch 31 iteration 200 with loss 0.32263. Total time 1.40388 hours\n",
      "Training at Epoch 31 iteration 300 with loss 0.29581. Total time 1.41583 hours\n",
      "Validation at Epoch 31 , MSE: 0.25164 , Pearson Correlation: 0.80216 with p-value: 0.0 , Concordance Index: 0.82479\n",
      "Training at Epoch 32 iteration 0 with loss 0.32310. Total time 1.42444 hours\n",
      "Training at Epoch 32 iteration 100 with loss 0.24243. Total time 1.43666 hours\n",
      "Training at Epoch 32 iteration 200 with loss 0.25189. Total time 1.44861 hours\n",
      "Training at Epoch 32 iteration 300 with loss 0.30749. Total time 1.46083 hours\n",
      "Validation at Epoch 32 , MSE: 0.24432 , Pearson Correlation: 0.80916 with p-value: 0.0 , Concordance Index: 0.82520\n",
      "Training at Epoch 33 iteration 0 with loss 0.20599. Total time 1.46916 hours\n",
      "Training at Epoch 33 iteration 100 with loss 0.39203. Total time 1.48194 hours\n",
      "Training at Epoch 33 iteration 200 with loss 0.35323. Total time 1.49444 hours\n",
      "Training at Epoch 33 iteration 300 with loss 0.35685. Total time 1.50694 hours\n",
      "Validation at Epoch 33 , MSE: 0.27000 , Pearson Correlation: 0.80468 with p-value: 0.0 , Concordance Index: 0.82471\n",
      "Training at Epoch 34 iteration 0 with loss 0.26189. Total time 1.51611 hours\n",
      "Training at Epoch 34 iteration 100 with loss 0.35037. Total time 1.52833 hours\n",
      "Training at Epoch 34 iteration 200 with loss 0.35269. Total time 1.54027 hours\n",
      "Training at Epoch 34 iteration 300 with loss 0.34905. Total time 1.55222 hours\n",
      "Validation at Epoch 34 , MSE: 0.24204 , Pearson Correlation: 0.82320 with p-value: 0.0 , Concordance Index: 0.84027\n",
      "Training at Epoch 35 iteration 0 with loss 0.33272. Total time 1.56055 hours\n",
      "Training at Epoch 35 iteration 100 with loss 0.25225. Total time 1.57277 hours\n",
      "Training at Epoch 35 iteration 200 with loss 0.25119. Total time 1.585 hours\n",
      "Training at Epoch 35 iteration 300 with loss 0.27280. Total time 1.59722 hours\n",
      "Validation at Epoch 35 , MSE: 0.23484 , Pearson Correlation: 0.81961 with p-value: 0.0 , Concordance Index: 0.83725\n",
      "Training at Epoch 36 iteration 0 with loss 0.27690. Total time 1.60583 hours\n",
      "Training at Epoch 36 iteration 100 with loss 0.32997. Total time 1.61805 hours\n",
      "Training at Epoch 36 iteration 200 with loss 0.28946. Total time 1.63 hours\n",
      "Training at Epoch 36 iteration 300 with loss 0.32728. Total time 1.64194 hours\n",
      "Validation at Epoch 36 , MSE: 0.22622 , Pearson Correlation: 0.82399 with p-value: 0.0 , Concordance Index: 0.83818\n",
      "Training at Epoch 37 iteration 0 with loss 0.28403. Total time 1.65027 hours\n",
      "Training at Epoch 37 iteration 100 with loss 0.29014. Total time 1.66277 hours\n",
      "Training at Epoch 37 iteration 200 with loss 0.23702. Total time 1.675 hours\n",
      "Training at Epoch 37 iteration 300 with loss 0.26102. Total time 1.6875 hours\n",
      "Validation at Epoch 37 , MSE: 0.24917 , Pearson Correlation: 0.82502 with p-value: 0.0 , Concordance Index: 0.83525\n",
      "Training at Epoch 38 iteration 0 with loss 0.35937. Total time 1.69638 hours\n",
      "Training at Epoch 38 iteration 100 with loss 0.24386. Total time 1.70861 hours\n",
      "Training at Epoch 38 iteration 200 with loss 0.30235. Total time 1.72083 hours\n",
      "Training at Epoch 38 iteration 300 with loss 0.25676. Total time 1.73305 hours\n",
      "Validation at Epoch 38 , MSE: 0.22608 , Pearson Correlation: 0.82723 with p-value: 0.0 , Concordance Index: 0.84117\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 39 iteration 0 with loss 0.23972. Total time 1.74138 hours\n",
      "Training at Epoch 39 iteration 100 with loss 0.32811. Total time 1.75361 hours\n",
      "Training at Epoch 39 iteration 200 with loss 0.28620. Total time 1.76583 hours\n",
      "Training at Epoch 39 iteration 300 with loss 0.29245. Total time 1.77777 hours\n",
      "Validation at Epoch 39 , MSE: 0.22666 , Pearson Correlation: 0.82984 with p-value: 0.0 , Concordance Index: 0.84352\n",
      "Training at Epoch 40 iteration 0 with loss 0.22158. Total time 1.78666 hours\n",
      "Training at Epoch 40 iteration 100 with loss 0.23753. Total time 1.79861 hours\n",
      "Training at Epoch 40 iteration 200 with loss 0.22566. Total time 1.81083 hours\n",
      "Training at Epoch 40 iteration 300 with loss 0.25036. Total time 1.8225 hours\n",
      "Validation at Epoch 40 , MSE: 0.24893 , Pearson Correlation: 0.83433 with p-value: 0.0 , Concordance Index: 0.84639\n",
      "Training at Epoch 41 iteration 0 with loss 0.24484. Total time 1.83138 hours\n",
      "Training at Epoch 41 iteration 100 with loss 0.20085. Total time 1.84388 hours\n",
      "Training at Epoch 41 iteration 200 with loss 0.21223. Total time 1.85638 hours\n",
      "Training at Epoch 41 iteration 300 with loss 0.26932. Total time 1.86888 hours\n",
      "Validation at Epoch 41 , MSE: 0.21428 , Pearson Correlation: 0.83846 with p-value: 0.0 , Concordance Index: 0.84458\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 40 Testing MSE: 0.29874085638201586 , Pearson Correlation: 0.7838779135409092 with p-value: 0.0 , Concordance Index: 0.787685654657913\n",
      "Training at Epoch 42 iteration 0 with loss 0.26496. Total time 1.88861 hours\n",
      "Training at Epoch 42 iteration 100 with loss 0.29321. Total time 1.90055 hours\n",
      "Training at Epoch 42 iteration 200 with loss 0.18268. Total time 1.9125 hours\n",
      "Training at Epoch 42 iteration 300 with loss 0.23029. Total time 1.92472 hours\n",
      "Validation at Epoch 42 , MSE: 0.22700 , Pearson Correlation: 0.83606 with p-value: 0.0 , Concordance Index: 0.84796\n",
      "Training at Epoch 43 iteration 0 with loss 0.23266. Total time 1.93333 hours\n",
      "Training at Epoch 43 iteration 100 with loss 0.26386. Total time 1.94555 hours\n",
      "Training at Epoch 43 iteration 200 with loss 0.25301. Total time 1.95777 hours\n",
      "Training at Epoch 43 iteration 300 with loss 0.20905. Total time 1.96972 hours\n",
      "Validation at Epoch 43 , MSE: 0.21152 , Pearson Correlation: 0.83967 with p-value: 0.0 , Concordance Index: 0.84755\n",
      "Training at Epoch 44 iteration 0 with loss 0.25211. Total time 1.97833 hours\n",
      "Training at Epoch 44 iteration 100 with loss 0.18451. Total time 1.99083 hours\n",
      "Training at Epoch 44 iteration 200 with loss 0.22059. Total time 2.00277 hours\n",
      "Training at Epoch 44 iteration 300 with loss 0.26569. Total time 2.015 hours\n",
      "Validation at Epoch 44 , MSE: 0.23574 , Pearson Correlation: 0.83728 with p-value: 0.0 , Concordance Index: 0.84729\n",
      "Training at Epoch 45 iteration 0 with loss 0.33796. Total time 2.02361 hours\n",
      "Training at Epoch 45 iteration 100 with loss 0.31126. Total time 2.03638 hours\n",
      "Training at Epoch 45 iteration 200 with loss 0.22966. Total time 2.04833 hours\n",
      "Training at Epoch 45 iteration 300 with loss 0.23172. Total time 2.06027 hours\n",
      "Validation at Epoch 45 , MSE: 0.21428 , Pearson Correlation: 0.83505 with p-value: 0.0 , Concordance Index: 0.84654\n",
      "Training at Epoch 46 iteration 0 with loss 0.17460. Total time 2.06888 hours\n",
      "Training at Epoch 46 iteration 100 with loss 0.22140. Total time 2.08166 hours\n",
      "Training at Epoch 46 iteration 200 with loss 0.20552. Total time 2.095 hours\n",
      "Training at Epoch 46 iteration 300 with loss 0.26057. Total time 2.10972 hours\n",
      "Validation at Epoch 46 , MSE: 0.24952 , Pearson Correlation: 0.83760 with p-value: 0.0 , Concordance Index: 0.84715\n",
      "Training at Epoch 47 iteration 0 with loss 0.26695. Total time 2.11888 hours\n",
      "Training at Epoch 47 iteration 100 with loss 0.22551. Total time 2.13111 hours\n",
      "Training at Epoch 47 iteration 200 with loss 0.21252. Total time 2.14333 hours\n",
      "Training at Epoch 47 iteration 300 with loss 0.23067. Total time 2.15583 hours\n",
      "Validation at Epoch 47 , MSE: 0.26166 , Pearson Correlation: 0.84424 with p-value: 0.0 , Concordance Index: 0.85007\n",
      "Training at Epoch 48 iteration 0 with loss 0.27059. Total time 2.16444 hours\n",
      "Training at Epoch 48 iteration 100 with loss 0.18838. Total time 2.17638 hours\n",
      "Training at Epoch 48 iteration 200 with loss 0.25107. Total time 2.18833 hours\n",
      "Training at Epoch 48 iteration 300 with loss 0.25801. Total time 2.20027 hours\n",
      "Validation at Epoch 48 , MSE: 0.24117 , Pearson Correlation: 0.84280 with p-value: 0.0 , Concordance Index: 0.84934\n",
      "Training at Epoch 49 iteration 0 with loss 0.20313. Total time 2.20861 hours\n",
      "Training at Epoch 49 iteration 100 with loss 0.20344. Total time 2.22138 hours\n",
      "Training at Epoch 49 iteration 200 with loss 0.23346. Total time 2.23388 hours\n",
      "Training at Epoch 49 iteration 300 with loss 0.22279. Total time 2.24611 hours\n",
      "Validation at Epoch 49 , MSE: 0.19932 , Pearson Correlation: 0.84709 with p-value: 0.0 , Concordance Index: 0.85062\n",
      "Training at Epoch 50 iteration 0 with loss 0.16537. Total time 2.25527 hours\n",
      "Training at Epoch 50 iteration 100 with loss 0.22029. Total time 2.2675 hours\n",
      "Training at Epoch 50 iteration 200 with loss 0.22283. Total time 2.27944 hours\n",
      "Training at Epoch 50 iteration 300 with loss 0.18863. Total time 2.29166 hours\n",
      "Validation at Epoch 50 , MSE: 0.19446 , Pearson Correlation: 0.85312 with p-value: 0.0 , Concordance Index: 0.85454\n",
      "Training at Epoch 51 iteration 0 with loss 0.16384. Total time 2.30055 hours\n",
      "Training at Epoch 51 iteration 100 with loss 0.22880. Total time 2.31277 hours\n",
      "Training at Epoch 51 iteration 200 with loss 0.21379. Total time 2.32472 hours\n",
      "Training at Epoch 51 iteration 300 with loss 0.18675. Total time 2.33666 hours\n",
      "Validation at Epoch 51 , MSE: 0.20701 , Pearson Correlation: 0.84984 with p-value: 0.0 , Concordance Index: 0.85409\n",
      "Training at Epoch 52 iteration 0 with loss 0.17908. Total time 2.345 hours\n",
      "Training at Epoch 52 iteration 100 with loss 0.28615. Total time 2.35722 hours\n",
      "Training at Epoch 52 iteration 200 with loss 0.19563. Total time 2.36916 hours\n",
      "Training at Epoch 52 iteration 300 with loss 0.22206. Total time 2.38111 hours\n",
      "Validation at Epoch 52 , MSE: 0.19255 , Pearson Correlation: 0.85362 with p-value: 0.0 , Concordance Index: 0.85862\n",
      "Training at Epoch 53 iteration 0 with loss 0.22199. Total time 2.38972 hours\n",
      "Training at Epoch 53 iteration 100 with loss 0.17910. Total time 2.40194 hours\n",
      "Training at Epoch 53 iteration 200 with loss 0.20503. Total time 2.41416 hours\n",
      "Training at Epoch 53 iteration 300 with loss 0.26503. Total time 2.42611 hours\n",
      "Validation at Epoch 53 , MSE: 0.20834 , Pearson Correlation: 0.84194 with p-value: 0.0 , Concordance Index: 0.85365\n",
      "Training at Epoch 54 iteration 0 with loss 0.24128. Total time 2.43472 hours\n",
      "Training at Epoch 54 iteration 100 with loss 0.18215. Total time 2.44694 hours\n",
      "Training at Epoch 54 iteration 200 with loss 0.21907. Total time 2.45888 hours\n",
      "Training at Epoch 54 iteration 300 with loss 0.21696. Total time 2.47083 hours\n",
      "Validation at Epoch 54 , MSE: 0.20170 , Pearson Correlation: 0.85300 with p-value: 0.0 , Concordance Index: 0.85223\n",
      "Training at Epoch 55 iteration 0 with loss 0.17253. Total time 2.47972 hours\n",
      "Training at Epoch 55 iteration 100 with loss 0.19766. Total time 2.49166 hours\n",
      "Training at Epoch 55 iteration 200 with loss 0.24954. Total time 2.50361 hours\n",
      "Training at Epoch 55 iteration 300 with loss 0.25328. Total time 2.51555 hours\n",
      "Validation at Epoch 55 , MSE: 0.18908 , Pearson Correlation: 0.85536 with p-value: 0.0 , Concordance Index: 0.85810\n",
      "Training at Epoch 56 iteration 0 with loss 0.23352. Total time 2.52388 hours\n",
      "Training at Epoch 56 iteration 100 with loss 0.24590. Total time 2.53611 hours\n",
      "Training at Epoch 56 iteration 200 with loss 0.17863. Total time 2.54805 hours\n",
      "Training at Epoch 56 iteration 300 with loss 0.29877. Total time 2.56027 hours\n",
      "Validation at Epoch 56 , MSE: 0.29975 , Pearson Correlation: 0.85168 with p-value: 0.0 , Concordance Index: 0.85459\n",
      "Training at Epoch 57 iteration 0 with loss 0.25097. Total time 2.56861 hours\n",
      "Training at Epoch 57 iteration 100 with loss 0.22755. Total time 2.58111 hours\n",
      "Training at Epoch 57 iteration 200 with loss 0.23505. Total time 2.59361 hours\n",
      "Training at Epoch 57 iteration 300 with loss 0.20517. Total time 2.60611 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Validation at Epoch 57 , MSE: 0.20351 , Pearson Correlation: 0.85210 with p-value: 0.0 , Concordance Index: 0.85508\n",
      "Training at Epoch 58 iteration 0 with loss 0.20297. Total time 2.615 hours\n",
      "Training at Epoch 58 iteration 100 with loss 0.19858. Total time 2.62722 hours\n",
      "Training at Epoch 58 iteration 200 with loss 0.16784. Total time 2.63916 hours\n",
      "Training at Epoch 58 iteration 300 with loss 0.21220. Total time 2.65111 hours\n",
      "Validation at Epoch 58 , MSE: 0.19832 , Pearson Correlation: 0.85583 with p-value: 0.0 , Concordance Index: 0.85814\n",
      "Training at Epoch 59 iteration 0 with loss 0.20559. Total time 2.66 hours\n",
      "Training at Epoch 59 iteration 100 with loss 0.20066. Total time 2.67222 hours\n",
      "Training at Epoch 59 iteration 200 with loss 0.20583. Total time 2.68416 hours\n",
      "Training at Epoch 59 iteration 300 with loss 0.17532. Total time 2.69611 hours\n",
      "Validation at Epoch 59 , MSE: 0.20348 , Pearson Correlation: 0.85363 with p-value: 0.0 , Concordance Index: 0.86079\n",
      "Training at Epoch 60 iteration 0 with loss 0.19845. Total time 2.70472 hours\n",
      "Training at Epoch 60 iteration 100 with loss 0.21921. Total time 2.71694 hours\n",
      "Training at Epoch 60 iteration 200 with loss 0.21595. Total time 2.72944 hours\n",
      "Training at Epoch 60 iteration 300 with loss 0.22667. Total time 2.74166 hours\n",
      "Validation at Epoch 60 , MSE: 0.19656 , Pearson Correlation: 0.85849 with p-value: 0.0 , Concordance Index: 0.86072\n",
      "Training at Epoch 61 iteration 0 with loss 0.19410. Total time 2.75083 hours\n",
      "Training at Epoch 61 iteration 100 with loss 0.17884. Total time 2.76305 hours\n",
      "Training at Epoch 61 iteration 200 with loss 0.22765. Total time 2.77555 hours\n",
      "Training at Epoch 61 iteration 300 with loss 0.16212. Total time 2.78805 hours\n",
      "Validation at Epoch 61 , MSE: 0.20872 , Pearson Correlation: 0.85337 with p-value: 0.0 , Concordance Index: 0.85604\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 60 Testing MSE: 0.2888950810993526 , Pearson Correlation: 0.7985228731172878 with p-value: 0.0 , Concordance Index: 0.8026654832109817\n",
      "Training at Epoch 62 iteration 0 with loss 0.23526. Total time 2.80694 hours\n",
      "Training at Epoch 62 iteration 100 with loss 0.18982. Total time 2.81916 hours\n",
      "Training at Epoch 62 iteration 200 with loss 0.18463. Total time 2.83111 hours\n",
      "Training at Epoch 62 iteration 300 with loss 0.14471. Total time 2.84305 hours\n",
      "Validation at Epoch 62 , MSE: 0.18718 , Pearson Correlation: 0.86084 with p-value: 0.0 , Concordance Index: 0.86103\n",
      "Training at Epoch 63 iteration 0 with loss 0.18222. Total time 2.85138 hours\n",
      "Training at Epoch 63 iteration 100 with loss 0.20887. Total time 2.86361 hours\n",
      "Training at Epoch 63 iteration 200 with loss 0.17720. Total time 2.87555 hours\n",
      "Training at Epoch 63 iteration 300 with loss 0.14633. Total time 2.8875 hours\n",
      "Validation at Epoch 63 , MSE: 0.18619 , Pearson Correlation: 0.85967 with p-value: 0.0 , Concordance Index: 0.86130\n",
      "Training at Epoch 64 iteration 0 with loss 0.15302. Total time 2.89611 hours\n",
      "Training at Epoch 64 iteration 100 with loss 0.13990. Total time 2.90805 hours\n",
      "Training at Epoch 64 iteration 200 with loss 0.17772. Total time 2.92 hours\n",
      "Training at Epoch 64 iteration 300 with loss 0.19494. Total time 2.93194 hours\n",
      "Validation at Epoch 64 , MSE: 0.18553 , Pearson Correlation: 0.86186 with p-value: 0.0 , Concordance Index: 0.86150\n",
      "Training at Epoch 65 iteration 0 with loss 0.21314. Total time 2.94055 hours\n",
      "Training at Epoch 65 iteration 100 with loss 0.17707. Total time 2.95277 hours\n",
      "Training at Epoch 65 iteration 200 with loss 0.18866. Total time 2.965 hours\n",
      "Training at Epoch 65 iteration 300 with loss 0.17678. Total time 2.97694 hours\n",
      "Validation at Epoch 65 , MSE: 0.18760 , Pearson Correlation: 0.85929 with p-value: 0.0 , Concordance Index: 0.86167\n",
      "Training at Epoch 66 iteration 0 with loss 0.20146. Total time 2.98583 hours\n",
      "Training at Epoch 66 iteration 100 with loss 0.17048. Total time 2.99805 hours\n",
      "Training at Epoch 66 iteration 200 with loss 0.19265. Total time 3.01 hours\n",
      "Training at Epoch 66 iteration 300 with loss 0.20253. Total time 3.02194 hours\n",
      "Validation at Epoch 66 , MSE: 0.18592 , Pearson Correlation: 0.86200 with p-value: 0.0 , Concordance Index: 0.86341\n",
      "Training at Epoch 67 iteration 0 with loss 0.25645. Total time 3.03083 hours\n",
      "Training at Epoch 67 iteration 100 with loss 0.17875. Total time 3.04305 hours\n",
      "Training at Epoch 67 iteration 200 with loss 0.18071. Total time 3.055 hours\n",
      "Training at Epoch 67 iteration 300 with loss 0.16005. Total time 3.06694 hours\n",
      "Validation at Epoch 67 , MSE: 0.19771 , Pearson Correlation: 0.86001 with p-value: 0.0 , Concordance Index: 0.86295\n",
      "Training at Epoch 68 iteration 0 with loss 0.17552. Total time 3.07555 hours\n",
      "Training at Epoch 68 iteration 100 with loss 0.18154. Total time 3.08777 hours\n",
      "Training at Epoch 68 iteration 200 with loss 0.16171. Total time 3.09972 hours\n",
      "Training at Epoch 68 iteration 300 with loss 0.14935. Total time 3.11166 hours\n",
      "Validation at Epoch 68 , MSE: 0.19042 , Pearson Correlation: 0.86394 with p-value: 0.0 , Concordance Index: 0.86252\n",
      "Training at Epoch 69 iteration 0 with loss 0.14705. Total time 3.12 hours\n",
      "Training at Epoch 69 iteration 100 with loss 0.27247. Total time 3.13277 hours\n",
      "Training at Epoch 69 iteration 200 with loss 0.18162. Total time 3.14527 hours\n",
      "Training at Epoch 69 iteration 300 with loss 0.18839. Total time 3.15805 hours\n",
      "Validation at Epoch 69 , MSE: 0.17673 , Pearson Correlation: 0.86607 with p-value: 0.0 , Concordance Index: 0.86413\n",
      "Training at Epoch 70 iteration 0 with loss 0.13823. Total time 3.16666 hours\n",
      "Training at Epoch 70 iteration 100 with loss 0.19500. Total time 3.17916 hours\n",
      "Training at Epoch 70 iteration 200 with loss 0.17754. Total time 3.19111 hours\n",
      "Training at Epoch 70 iteration 300 with loss 0.18613. Total time 3.20305 hours\n",
      "Validation at Epoch 70 , MSE: 0.19243 , Pearson Correlation: 0.86502 with p-value: 0.0 , Concordance Index: 0.86623\n",
      "Training at Epoch 71 iteration 0 with loss 0.17166. Total time 3.21138 hours\n",
      "Training at Epoch 71 iteration 100 with loss 0.13895. Total time 3.22416 hours\n",
      "Training at Epoch 71 iteration 200 with loss 0.16355. Total time 3.23666 hours\n",
      "Training at Epoch 71 iteration 300 with loss 0.16703. Total time 3.24916 hours\n",
      "Validation at Epoch 71 , MSE: 0.17645 , Pearson Correlation: 0.86609 with p-value: 0.0 , Concordance Index: 0.86743\n",
      "Training at Epoch 72 iteration 0 with loss 0.13588. Total time 3.25805 hours\n",
      "Training at Epoch 72 iteration 100 with loss 0.12432. Total time 3.27055 hours\n",
      "Training at Epoch 72 iteration 200 with loss 0.12685. Total time 3.28305 hours\n",
      "Training at Epoch 72 iteration 300 with loss 0.19900. Total time 3.29527 hours\n",
      "Validation at Epoch 72 , MSE: 0.18665 , Pearson Correlation: 0.86315 with p-value: 0.0 , Concordance Index: 0.86645\n",
      "Training at Epoch 73 iteration 0 with loss 0.18018. Total time 3.30388 hours\n",
      "Training at Epoch 73 iteration 100 with loss 0.14608. Total time 3.31611 hours\n",
      "Training at Epoch 73 iteration 200 with loss 0.18507. Total time 3.32805 hours\n",
      "Training at Epoch 73 iteration 300 with loss 0.17257. Total time 3.34 hours\n",
      "Validation at Epoch 73 , MSE: 0.18163 , Pearson Correlation: 0.86207 with p-value: 0.0 , Concordance Index: 0.86686\n",
      "Training at Epoch 74 iteration 0 with loss 0.14422. Total time 3.34861 hours\n",
      "Training at Epoch 74 iteration 100 with loss 0.17453. Total time 3.36083 hours\n",
      "Training at Epoch 74 iteration 200 with loss 0.16500. Total time 3.37277 hours\n",
      "Training at Epoch 74 iteration 300 with loss 0.15842. Total time 3.38472 hours\n",
      "Validation at Epoch 74 , MSE: 0.17623 , Pearson Correlation: 0.86770 with p-value: 0.0 , Concordance Index: 0.86703\n",
      "Training at Epoch 75 iteration 0 with loss 0.12571. Total time 3.39361 hours\n",
      "Training at Epoch 75 iteration 100 with loss 0.17472. Total time 3.40583 hours\n",
      "Training at Epoch 75 iteration 200 with loss 0.17723. Total time 3.41777 hours\n",
      "Training at Epoch 75 iteration 300 with loss 0.18997. Total time 3.42972 hours\n",
      "Validation at Epoch 75 , MSE: 0.17812 , Pearson Correlation: 0.86451 with p-value: 0.0 , Concordance Index: 0.86730\n",
      "Training at Epoch 76 iteration 0 with loss 0.13522. Total time 3.43805 hours\n",
      "Training at Epoch 76 iteration 100 with loss 0.15531. Total time 3.45027 hours\n",
      "Training at Epoch 76 iteration 200 with loss 0.13747. Total time 3.46222 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 76 iteration 300 with loss 0.13265. Total time 3.47416 hours\n",
      "Validation at Epoch 76 , MSE: 0.18209 , Pearson Correlation: 0.86140 with p-value: 0.0 , Concordance Index: 0.86775\n",
      "Training at Epoch 77 iteration 0 with loss 0.12348. Total time 3.48305 hours\n",
      "Training at Epoch 77 iteration 100 with loss 0.12240. Total time 3.49527 hours\n",
      "Training at Epoch 77 iteration 200 with loss 0.14790. Total time 3.50694 hours\n",
      "Training at Epoch 77 iteration 300 with loss 0.21409. Total time 3.51888 hours\n",
      "Validation at Epoch 77 , MSE: 0.18014 , Pearson Correlation: 0.86308 with p-value: 0.0 , Concordance Index: 0.86900\n",
      "Training at Epoch 78 iteration 0 with loss 0.14536. Total time 3.52777 hours\n",
      "Training at Epoch 78 iteration 100 with loss 0.11006. Total time 3.54027 hours\n",
      "Training at Epoch 78 iteration 200 with loss 0.14484. Total time 3.55277 hours\n",
      "Training at Epoch 78 iteration 300 with loss 0.14478. Total time 3.56527 hours\n",
      "Validation at Epoch 78 , MSE: 0.18188 , Pearson Correlation: 0.86372 with p-value: 0.0 , Concordance Index: 0.86913\n",
      "Training at Epoch 79 iteration 0 with loss 0.15320. Total time 3.57388 hours\n",
      "Training at Epoch 79 iteration 100 with loss 0.13530. Total time 3.58611 hours\n",
      "Training at Epoch 79 iteration 200 with loss 0.16376. Total time 3.59805 hours\n",
      "Training at Epoch 79 iteration 300 with loss 0.12278. Total time 3.61 hours\n",
      "Validation at Epoch 79 , MSE: 0.17434 , Pearson Correlation: 0.86772 with p-value: 0.0 , Concordance Index: 0.87075\n",
      "Training at Epoch 80 iteration 0 with loss 0.14144. Total time 3.61861 hours\n",
      "Training at Epoch 80 iteration 100 with loss 0.13395. Total time 3.63083 hours\n",
      "Training at Epoch 80 iteration 200 with loss 0.12634. Total time 3.64277 hours\n",
      "Training at Epoch 80 iteration 300 with loss 0.15779. Total time 3.65472 hours\n",
      "Validation at Epoch 80 , MSE: 0.17709 , Pearson Correlation: 0.86725 with p-value: 0.0 , Concordance Index: 0.87315\n",
      "Training at Epoch 81 iteration 0 with loss 0.11234. Total time 3.66333 hours\n",
      "Training at Epoch 81 iteration 100 with loss 0.12973. Total time 3.67583 hours\n",
      "Training at Epoch 81 iteration 200 with loss 0.13116. Total time 3.6875 hours\n",
      "Training at Epoch 81 iteration 300 with loss 0.13699. Total time 3.69944 hours\n",
      "Validation at Epoch 81 , MSE: 0.17438 , Pearson Correlation: 0.86811 with p-value: 0.0 , Concordance Index: 0.87083\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 80 Testing MSE: 0.23551859180611814 , Pearson Correlation: 0.8257996678785327 with p-value: 0.0 , Concordance Index: 0.8198610265201747\n",
      "Training at Epoch 82 iteration 0 with loss 0.13500. Total time 3.71916 hours\n",
      "Training at Epoch 82 iteration 100 with loss 0.14038. Total time 3.73138 hours\n",
      "Training at Epoch 82 iteration 200 with loss 0.15728. Total time 3.74333 hours\n",
      "Training at Epoch 82 iteration 300 with loss 0.15534. Total time 3.75527 hours\n",
      "Validation at Epoch 82 , MSE: 0.19211 , Pearson Correlation: 0.86759 with p-value: 0.0 , Concordance Index: 0.87065\n",
      "Training at Epoch 83 iteration 0 with loss 0.15087. Total time 3.76361 hours\n",
      "Training at Epoch 83 iteration 100 with loss 0.16835. Total time 3.77583 hours\n",
      "Training at Epoch 83 iteration 200 with loss 0.15522. Total time 3.78777 hours\n",
      "Training at Epoch 83 iteration 300 with loss 0.16281. Total time 3.79972 hours\n",
      "Validation at Epoch 83 , MSE: 0.17372 , Pearson Correlation: 0.87041 with p-value: 0.0 , Concordance Index: 0.87152\n",
      "Training at Epoch 84 iteration 0 with loss 0.13128. Total time 3.80833 hours\n",
      "Training at Epoch 84 iteration 100 with loss 0.15543. Total time 3.82083 hours\n",
      "Training at Epoch 84 iteration 200 with loss 0.15700. Total time 3.83333 hours\n",
      "Training at Epoch 84 iteration 300 with loss 0.16603. Total time 3.84611 hours\n",
      "Validation at Epoch 84 , MSE: 0.17319 , Pearson Correlation: 0.86844 with p-value: 0.0 , Concordance Index: 0.87102\n",
      "Training at Epoch 85 iteration 0 with loss 0.11565. Total time 3.85472 hours\n",
      "Training at Epoch 85 iteration 100 with loss 0.12428. Total time 3.86722 hours\n",
      "Training at Epoch 85 iteration 200 with loss 0.13604. Total time 3.87972 hours\n",
      "Training at Epoch 85 iteration 300 with loss 0.12712. Total time 3.89222 hours\n",
      "Validation at Epoch 85 , MSE: 0.17502 , Pearson Correlation: 0.86822 with p-value: 0.0 , Concordance Index: 0.87235\n",
      "Training at Epoch 86 iteration 0 with loss 0.11693. Total time 3.90111 hours\n",
      "Training at Epoch 86 iteration 100 with loss 0.11073. Total time 3.91333 hours\n",
      "Training at Epoch 86 iteration 200 with loss 0.17038. Total time 3.92555 hours\n",
      "Training at Epoch 86 iteration 300 with loss 0.12068. Total time 3.9375 hours\n",
      "Validation at Epoch 86 , MSE: 0.18273 , Pearson Correlation: 0.86399 with p-value: 0.0 , Concordance Index: 0.87272\n",
      "Training at Epoch 87 iteration 0 with loss 0.09955. Total time 3.94583 hours\n",
      "Training at Epoch 87 iteration 100 with loss 0.11784. Total time 3.95805 hours\n",
      "Training at Epoch 87 iteration 200 with loss 0.14536. Total time 3.97 hours\n",
      "Training at Epoch 87 iteration 300 with loss 0.15186. Total time 3.98194 hours\n",
      "Validation at Epoch 87 , MSE: 0.18155 , Pearson Correlation: 0.86637 with p-value: 0.0 , Concordance Index: 0.87180\n",
      "Training at Epoch 88 iteration 0 with loss 0.12129. Total time 3.99055 hours\n",
      "Training at Epoch 88 iteration 100 with loss 0.12450. Total time 4.00305 hours\n",
      "Training at Epoch 88 iteration 200 with loss 0.11866. Total time 4.01555 hours\n",
      "Training at Epoch 88 iteration 300 with loss 0.16445. Total time 4.02833 hours\n",
      "Validation at Epoch 88 , MSE: 0.17941 , Pearson Correlation: 0.86548 with p-value: 0.0 , Concordance Index: 0.87222\n",
      "Training at Epoch 89 iteration 0 with loss 0.14046. Total time 4.03722 hours\n",
      "Training at Epoch 89 iteration 100 with loss 0.13436. Total time 4.04944 hours\n",
      "Training at Epoch 89 iteration 200 with loss 0.10923. Total time 4.06138 hours\n",
      "Training at Epoch 89 iteration 300 with loss 0.17201. Total time 4.07333 hours\n",
      "Validation at Epoch 89 , MSE: 0.17382 , Pearson Correlation: 0.86921 with p-value: 0.0 , Concordance Index: 0.87335\n",
      "Training at Epoch 90 iteration 0 with loss 0.11617. Total time 4.08194 hours\n",
      "Training at Epoch 90 iteration 100 with loss 0.10571. Total time 4.09416 hours\n",
      "Training at Epoch 90 iteration 200 with loss 0.14426. Total time 4.10638 hours\n",
      "Training at Epoch 90 iteration 300 with loss 0.11783. Total time 4.11833 hours\n",
      "Validation at Epoch 90 , MSE: 0.17522 , Pearson Correlation: 0.86854 with p-value: 0.0 , Concordance Index: 0.87313\n",
      "Training at Epoch 91 iteration 0 with loss 0.15547. Total time 4.12694 hours\n",
      "Training at Epoch 91 iteration 100 with loss 0.12324. Total time 4.13916 hours\n",
      "Training at Epoch 91 iteration 200 with loss 0.10583. Total time 4.15111 hours\n",
      "Training at Epoch 91 iteration 300 with loss 0.15883. Total time 4.16333 hours\n",
      "Validation at Epoch 91 , MSE: 0.16908 , Pearson Correlation: 0.87184 with p-value: 0.0 , Concordance Index: 0.87219\n",
      "Training at Epoch 92 iteration 0 with loss 0.11548. Total time 4.17166 hours\n",
      "Training at Epoch 92 iteration 100 with loss 0.13643. Total time 4.18388 hours\n",
      "Training at Epoch 92 iteration 200 with loss 0.11422. Total time 4.19583 hours\n",
      "Training at Epoch 92 iteration 300 with loss 0.10609. Total time 4.20805 hours\n",
      "Validation at Epoch 92 , MSE: 0.17563 , Pearson Correlation: 0.86708 with p-value: 0.0 , Concordance Index: 0.87340\n",
      "Training at Epoch 93 iteration 0 with loss 0.09497. Total time 4.21694 hours\n",
      "Training at Epoch 93 iteration 100 with loss 0.10958. Total time 4.22916 hours\n",
      "Training at Epoch 93 iteration 200 with loss 0.12062. Total time 4.24111 hours\n",
      "Training at Epoch 93 iteration 300 with loss 0.12612. Total time 4.25305 hours\n",
      "Validation at Epoch 93 , MSE: 0.17219 , Pearson Correlation: 0.86953 with p-value: 0.0 , Concordance Index: 0.87482\n",
      "Training at Epoch 94 iteration 0 with loss 0.11514. Total time 4.26166 hours\n",
      "Training at Epoch 94 iteration 100 with loss 0.13201. Total time 4.27388 hours\n",
      "Training at Epoch 94 iteration 200 with loss 0.12662. Total time 4.28583 hours\n",
      "Training at Epoch 94 iteration 300 with loss 0.10848. Total time 4.29777 hours\n",
      "Validation at Epoch 94 , MSE: 0.17701 , Pearson Correlation: 0.86952 with p-value: 0.0 , Concordance Index: 0.87392\n",
      "Training at Epoch 95 iteration 0 with loss 0.10777. Total time 4.30611 hours\n",
      "Training at Epoch 95 iteration 100 with loss 0.12194. Total time 4.31833 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 95 iteration 200 with loss 0.11308. Total time 4.33055 hours\n",
      "Training at Epoch 95 iteration 300 with loss 0.14614. Total time 4.3425 hours\n",
      "Validation at Epoch 95 , MSE: 0.18540 , Pearson Correlation: 0.86673 with p-value: 0.0 , Concordance Index: 0.87048\n",
      "Training at Epoch 96 iteration 0 with loss 0.13581. Total time 4.35111 hours\n",
      "Training at Epoch 96 iteration 100 with loss 0.11688. Total time 4.36333 hours\n",
      "Training at Epoch 96 iteration 200 with loss 0.13290. Total time 4.37527 hours\n",
      "Training at Epoch 96 iteration 300 with loss 0.14888. Total time 4.3875 hours\n",
      "Validation at Epoch 96 , MSE: 0.17051 , Pearson Correlation: 0.87052 with p-value: 0.0 , Concordance Index: 0.87394\n",
      "Training at Epoch 97 iteration 0 with loss 0.10325. Total time 4.39583 hours\n",
      "Training at Epoch 97 iteration 100 with loss 0.11588. Total time 4.40805 hours\n",
      "Training at Epoch 97 iteration 200 with loss 0.13321. Total time 4.42 hours\n",
      "Training at Epoch 97 iteration 300 with loss 0.12630. Total time 4.43194 hours\n",
      "Validation at Epoch 97 , MSE: 0.17438 , Pearson Correlation: 0.86738 with p-value: 0.0 , Concordance Index: 0.87448\n",
      "Training at Epoch 98 iteration 0 with loss 0.09091. Total time 4.44055 hours\n",
      "Training at Epoch 98 iteration 100 with loss 0.10088. Total time 4.45277 hours\n",
      "Training at Epoch 98 iteration 200 with loss 0.12519. Total time 4.46472 hours\n",
      "Training at Epoch 98 iteration 300 with loss 0.12430. Total time 4.47666 hours\n",
      "Validation at Epoch 98 , MSE: 0.17116 , Pearson Correlation: 0.87144 with p-value: 0.0 , Concordance Index: 0.87502\n",
      "Training at Epoch 99 iteration 0 with loss 0.08777. Total time 4.485 hours\n",
      "Training at Epoch 99 iteration 100 with loss 0.11933. Total time 4.4975 hours\n",
      "Training at Epoch 99 iteration 200 with loss 0.11203. Total time 4.50944 hours\n",
      "Training at Epoch 99 iteration 300 with loss 0.11527. Total time 4.52138 hours\n",
      "Validation at Epoch 99 , MSE: 0.18280 , Pearson Correlation: 0.87002 with p-value: 0.0 , Concordance Index: 0.87550\n",
      "Training at Epoch 100 iteration 0 with loss 0.09500. Total time 4.53 hours\n",
      "Training at Epoch 100 iteration 100 with loss 0.09999. Total time 4.54222 hours\n",
      "Training at Epoch 100 iteration 200 with loss 0.11347. Total time 4.55416 hours\n",
      "Training at Epoch 100 iteration 300 with loss 0.12875. Total time 4.56611 hours\n",
      "Validation at Epoch 100 , MSE: 0.17628 , Pearson Correlation: 0.86912 with p-value: 0.0 , Concordance Index: 0.87473\n",
      "--- Go for Testing ---\n",
      "Testing MSE: 0.23826437569013648 , Pearson Correlation: 0.8273716595703193 with p-value: 0.0 , Concordance Index: 0.8270102153532961\n",
      "--- Training Finished ---\n"
     ]
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYoAAAELCAYAAADHksFtAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjMsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+AADFEAAAdCklEQVR4nO3de5hcVZnv8e8vF8AAHgJpnQyQNCAygwwnQA8DXkBhznAZBWVGhZOjIEiDwKMcPecBzaDRMcroKCoiTtQISIeLXI7MCCIql0G52AkhBhEJkEAkJg0BZIhckrznj7Xaqu5U7VR36tap3+d56qm9372r9luVTr+991p7LUUEZmZm1YxrdQJmZtbeXCjMzKyQC4WZmRVyoTAzs0IuFGZmVmhCqxOotylTpkR3d3er0zAzG1MWLFjwVER0Vdq2xRWK7u5u+vv7W52GmdmYIml5tW2+9GRmZoVcKMzMrJALhZmZFXKhMDOzQk0tFJLmSVotaUlZ7CpJi/JjmaRFOd4t6Y9l277ZzFzNzCxp9hn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fHdI2jdv/yHw2bz87rIcVlZKWNKR+TX/BbwX+FDO6U5Jw4ef3gP4KvDl/DlXAtdIel3ht2JWhS89WceJiJck3ZdXHy2/zJOHvP4X4LsRcXJZ/B7SuDunAF8pe7vJwAER8fthx/hg2WvHAz8ijdd1CvCRiBiQ9EjeZVFELN1E2p8lDRJ3VOT5DiTdlXP6GKlYDZoCHBIRD+f9FpKKxXuAz23iOGYb8RmF2VAHA68G+iRNGHyQ2jZ+Q5oytdzdw4sEQL70c6ukp4F1pMEGXw/sNXzfTZG0LanR/aooTYpDpBnRfg4cOuwlDw8WibzfatIZzTTMRsFnFGZDDc4E95Mq258Ztr7RpaLc5fZG4GbSGcRKYD2pF9M2o8hpMmnU10qXpX4PTB8WqzSl60ujPLaZC4XZME/n55NIl4qGe37YeqXhl/+BdBZxXES8MhjMU3o+O4qcnsnH+bMK2/6MUs5mDeFCYZ3qpfz8qmHxX5CKwesi4tJRvvck0hnEn4qIpMNIl34eK9uvWg5DRMQLkhYA75Y0OyLW5/ecDrwRuHCUeZrVxIXCOtUq0l/ix0taDLwAPBYRT0v6v8BFkrpIM7o9R+rFdChwW0TM38R7/wg4G7hE0ndJbRPnAb8btt+v8/OZki4ltWMsrnIfxnmkXk//IekbwHaknlbPUZpT2qwh3JhtHSnSfMwfJF3//wlpus935G3/BhxDanj+HqlYfJr0h9WiGt77ZuDDwJuA/yDNHPd+0uxm5fvdD8zOx70z5/DnVd7zR6R7NHYAriZNs/kg8ObI86qbNYpnuDMzs0I+ozAzs0IuFGZmVsiFwszMCrlQmJlZIRcKMzMr5EJhZmaFXCjMzKyQC4WZmRX6/9narZbO3nNdAAAAAElFTkSuQmCC\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "model = models.model_initialize(**config)\n",
    "model.train(train, val, test)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [],
   "source": [
    "model.save_model('./model_morgan_cnn_kiba')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "in total: 118254 drug-target pairs\n",
      "encoding drug...\n",
      "unique drugs: 2068\n",
      "drug encoding finished...\n",
      "encoding protein...\n",
      "unique target sequence: 229\n",
      "protein encoding finished...\n",
      "splitting dataset...\n",
      "Done.\n",
      "Let's use 1 GPU!\n",
      "--- Data Preparation ---\n",
      "--- Go for Training ---\n",
      "Training at Epoch 1 iteration 0 with loss 138.682. Total time 0.00055 hours\n",
      "Training at Epoch 1 iteration 100 with loss 0.75021. Total time 0.01333 hours\n",
      "Training at Epoch 1 iteration 200 with loss 0.66862. Total time 0.02583 hours\n",
      "Training at Epoch 1 iteration 300 with loss 1.04627. Total time 0.03833 hours\n",
      "Validation at Epoch 1 , MSE: 0.47419 , Pearson Correlation: 0.58892 with p-value: 0.0 , Concordance Index: 0.71187\n",
      "Training at Epoch 2 iteration 0 with loss 0.67185. Total time 0.0475 hours\n",
      "Training at Epoch 2 iteration 100 with loss 0.51149. Total time 0.06055 hours\n",
      "Training at Epoch 2 iteration 200 with loss 0.53381. Total time 0.07305 hours\n",
      "Training at Epoch 2 iteration 300 with loss 0.57203. Total time 0.08527 hours\n",
      "Validation at Epoch 2 , MSE: 0.40959 , Pearson Correlation: 0.65937 with p-value: 0.0 , Concordance Index: 0.75610\n",
      "Training at Epoch 3 iteration 0 with loss 0.35242. Total time 0.09444 hours\n",
      "Training at Epoch 3 iteration 100 with loss 0.50147. Total time 0.10722 hours\n",
      "Training at Epoch 3 iteration 200 with loss 0.53980. Total time 0.11972 hours\n",
      "Training at Epoch 3 iteration 300 with loss 0.47539. Total time 0.13194 hours\n",
      "Validation at Epoch 3 , MSE: 0.39711 , Pearson Correlation: 0.67294 with p-value: 0.0 , Concordance Index: 0.76567\n",
      "Training at Epoch 4 iteration 0 with loss 0.44948. Total time 0.14083 hours\n",
      "Training at Epoch 4 iteration 100 with loss 0.48292. Total time 0.15305 hours\n",
      "Training at Epoch 4 iteration 200 with loss 0.50892. Total time 0.16527 hours\n",
      "Training at Epoch 4 iteration 300 with loss 0.68566. Total time 0.1775 hours\n",
      "Validation at Epoch 4 , MSE: 0.39419 , Pearson Correlation: 0.68532 with p-value: 0.0 , Concordance Index: 0.76989\n",
      "Training at Epoch 5 iteration 0 with loss 0.45377. Total time 0.18611 hours\n",
      "Training at Epoch 5 iteration 100 with loss 0.57276. Total time 0.19861 hours\n",
      "Training at Epoch 5 iteration 200 with loss 0.50793. Total time 0.21111 hours\n",
      "Training at Epoch 5 iteration 300 with loss 0.53174. Total time 0.22305 hours\n",
      "Validation at Epoch 5 , MSE: 0.42581 , Pearson Correlation: 0.68494 with p-value: 0.0 , Concordance Index: 0.77337\n",
      "Training at Epoch 6 iteration 0 with loss 0.39869. Total time 0.23194 hours\n",
      "Training at Epoch 6 iteration 100 with loss 0.62878. Total time 0.24416 hours\n",
      "Training at Epoch 6 iteration 200 with loss 0.48273. Total time 0.25638 hours\n",
      "Training at Epoch 6 iteration 300 with loss 0.47823. Total time 0.26861 hours\n",
      "Validation at Epoch 6 , MSE: 0.43360 , Pearson Correlation: 0.68336 with p-value: 0.0 , Concordance Index: 0.76885\n",
      "Training at Epoch 7 iteration 0 with loss 0.59517. Total time 0.27722 hours\n",
      "Training at Epoch 7 iteration 100 with loss 0.49013. Total time 0.29 hours\n",
      "Training at Epoch 7 iteration 200 with loss 0.45738. Total time 0.30194 hours\n",
      "Training at Epoch 7 iteration 300 with loss 0.51810. Total time 0.31416 hours\n",
      "Validation at Epoch 7 , MSE: 0.38099 , Pearson Correlation: 0.68574 with p-value: 0.0 , Concordance Index: 0.77266\n",
      "Training at Epoch 8 iteration 0 with loss 0.40167. Total time 0.32277 hours\n",
      "Training at Epoch 8 iteration 100 with loss 0.45282. Total time 0.33555 hours\n",
      "Training at Epoch 8 iteration 200 with loss 0.50263. Total time 0.34777 hours\n",
      "Training at Epoch 8 iteration 300 with loss 0.45243. Total time 0.36 hours\n",
      "Validation at Epoch 8 , MSE: 0.42645 , Pearson Correlation: 0.68429 with p-value: 0.0 , Concordance Index: 0.77061\n",
      "Training at Epoch 9 iteration 0 with loss 0.51588. Total time 0.36861 hours\n",
      "Training at Epoch 9 iteration 100 with loss 0.47829. Total time 0.38138 hours\n",
      "Training at Epoch 9 iteration 200 with loss 0.68095. Total time 0.39333 hours\n",
      "Training at Epoch 9 iteration 300 with loss 0.49344. Total time 0.40555 hours\n",
      "Validation at Epoch 9 , MSE: 0.38867 , Pearson Correlation: 0.68885 with p-value: 0.0 , Concordance Index: 0.77063\n",
      "Training at Epoch 10 iteration 0 with loss 0.39483. Total time 0.41416 hours\n",
      "Training at Epoch 10 iteration 100 with loss 0.37768. Total time 0.42666 hours\n",
      "Training at Epoch 10 iteration 200 with loss 0.60740. Total time 0.43888 hours\n",
      "Training at Epoch 10 iteration 300 with loss 0.66391. Total time 0.45111 hours\n",
      "Validation at Epoch 10 , MSE: 0.38613 , Pearson Correlation: 0.69104 with p-value: 0.0 , Concordance Index: 0.77314\n",
      "Training at Epoch 11 iteration 0 with loss 0.35155. Total time 0.45972 hours\n",
      "Training at Epoch 11 iteration 100 with loss 0.52472. Total time 0.4725 hours\n",
      "Training at Epoch 11 iteration 200 with loss 0.48784. Total time 0.48444 hours\n",
      "Training at Epoch 11 iteration 300 with loss 0.40807. Total time 0.49666 hours\n",
      "Validation at Epoch 11 , MSE: 0.45784 , Pearson Correlation: 0.71304 with p-value: 0.0 , Concordance Index: 0.78613\n",
      "Training at Epoch 12 iteration 0 with loss 0.55618. Total time 0.50555 hours\n",
      "Training at Epoch 12 iteration 100 with loss 0.37307. Total time 0.51777 hours\n",
      "Training at Epoch 12 iteration 200 with loss 0.44944. Total time 0.53 hours\n",
      "Training at Epoch 12 iteration 300 with loss 0.40547. Total time 0.54194 hours\n",
      "Validation at Epoch 12 , MSE: 0.48846 , Pearson Correlation: 0.73841 with p-value: 0.0 , Concordance Index: 0.79224\n",
      "Training at Epoch 13 iteration 0 with loss 0.52502. Total time 0.55083 hours\n",
      "Training at Epoch 13 iteration 100 with loss 0.35383. Total time 0.56333 hours\n",
      "Training at Epoch 13 iteration 200 with loss 0.54827. Total time 0.57555 hours\n",
      "Training at Epoch 13 iteration 300 with loss 0.43610. Total time 0.5875 hours\n",
      "Validation at Epoch 13 , MSE: 0.42437 , Pearson Correlation: 0.74725 with p-value: 0.0 , Concordance Index: 0.79523\n",
      "Training at Epoch 14 iteration 0 with loss 0.38126. Total time 0.59611 hours\n",
      "Training at Epoch 14 iteration 100 with loss 0.56025. Total time 0.60861 hours\n",
      "Training at Epoch 14 iteration 200 with loss 0.38661. Total time 0.62083 hours\n",
      "Training at Epoch 14 iteration 300 with loss 0.58559. Total time 0.63305 hours\n",
      "Validation at Epoch 14 , MSE: 0.46201 , Pearson Correlation: 0.74300 with p-value: 0.0 , Concordance Index: 0.79237\n",
      "Training at Epoch 15 iteration 0 with loss 0.57794. Total time 0.64166 hours\n",
      "Training at Epoch 15 iteration 100 with loss 0.37048. Total time 0.65416 hours\n",
      "Training at Epoch 15 iteration 200 with loss 0.39940. Total time 0.66638 hours\n",
      "Training at Epoch 15 iteration 300 with loss 0.25908. Total time 0.67861 hours\n",
      "Validation at Epoch 15 , MSE: 0.31925 , Pearson Correlation: 0.75137 with p-value: 0.0 , Concordance Index: 0.79390\n",
      "Training at Epoch 16 iteration 0 with loss 0.43179. Total time 0.68722 hours\n",
      "Training at Epoch 16 iteration 100 with loss 0.43833. Total time 0.69972 hours\n",
      "Training at Epoch 16 iteration 200 with loss 0.47682. Total time 0.71194 hours\n",
      "Training at Epoch 16 iteration 300 with loss 0.52135. Total time 0.72388 hours\n",
      "Validation at Epoch 16 , MSE: 0.34073 , Pearson Correlation: 0.75839 with p-value: 0.0 , Concordance Index: 0.80112\n",
      "Training at Epoch 17 iteration 0 with loss 0.29945. Total time 0.73277 hours\n",
      "Training at Epoch 17 iteration 100 with loss 0.47486. Total time 0.74527 hours\n",
      "Training at Epoch 17 iteration 200 with loss 0.38050. Total time 0.7575 hours\n",
      "Training at Epoch 17 iteration 300 with loss 0.46994. Total time 0.76944 hours\n",
      "Validation at Epoch 17 , MSE: 0.38613 , Pearson Correlation: 0.75625 with p-value: 0.0 , Concordance Index: 0.80151\n",
      "Training at Epoch 18 iteration 0 with loss 0.42216. Total time 0.77833 hours\n",
      "Training at Epoch 18 iteration 100 with loss 0.38770. Total time 0.79111 hours\n",
      "Training at Epoch 18 iteration 200 with loss 0.39301. Total time 0.80333 hours\n",
      "Training at Epoch 18 iteration 300 with loss 0.42077. Total time 0.81527 hours\n",
      "Validation at Epoch 18 , MSE: 0.31022 , Pearson Correlation: 0.75428 with p-value: 0.0 , Concordance Index: 0.80274\n",
      "Training at Epoch 19 iteration 0 with loss 0.33336. Total time 0.82416 hours\n",
      "Training at Epoch 19 iteration 100 with loss 0.44696. Total time 0.83666 hours\n",
      "Training at Epoch 19 iteration 200 with loss 0.34223. Total time 0.84861 hours\n",
      "Training at Epoch 19 iteration 300 with loss 0.34197. Total time 0.86083 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Validation at Epoch 19 , MSE: 0.31367 , Pearson Correlation: 0.76489 with p-value: 0.0 , Concordance Index: 0.80541\n",
      "Training at Epoch 20 iteration 0 with loss 0.40342. Total time 0.86972 hours\n",
      "Training at Epoch 20 iteration 100 with loss 0.32952. Total time 0.88222 hours\n",
      "Training at Epoch 20 iteration 200 with loss 0.40096. Total time 0.89416 hours\n",
      "Training at Epoch 20 iteration 300 with loss 0.47073. Total time 0.90638 hours\n",
      "Validation at Epoch 20 , MSE: 0.32313 , Pearson Correlation: 0.76409 with p-value: 0.0 , Concordance Index: 0.80576\n",
      "Training at Epoch 21 iteration 0 with loss 0.41739. Total time 0.91527 hours\n",
      "Training at Epoch 21 iteration 100 with loss 0.27796. Total time 0.9275 hours\n",
      "Training at Epoch 21 iteration 200 with loss 0.35977. Total time 0.93972 hours\n",
      "Training at Epoch 21 iteration 300 with loss 0.39317. Total time 0.95194 hours\n",
      "Validation at Epoch 21 , MSE: 0.30707 , Pearson Correlation: 0.76463 with p-value: 0.0 , Concordance Index: 0.80878\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 20 Testing MSE: 0.39082070588592255 , Pearson Correlation: 0.697353694373822 with p-value: 0.0 , Concordance Index: 0.7503464927518501\n",
      "Training at Epoch 22 iteration 0 with loss 0.30356. Total time 0.97138 hours\n",
      "Training at Epoch 22 iteration 100 with loss 0.27944. Total time 0.98388 hours\n",
      "Training at Epoch 22 iteration 200 with loss 0.38017. Total time 0.99583 hours\n",
      "Training at Epoch 22 iteration 300 with loss 0.36052. Total time 1.00805 hours\n",
      "Validation at Epoch 22 , MSE: 0.31178 , Pearson Correlation: 0.76187 with p-value: 0.0 , Concordance Index: 0.80134\n",
      "Training at Epoch 23 iteration 0 with loss 0.34951. Total time 1.01694 hours\n",
      "Training at Epoch 23 iteration 100 with loss 0.34145. Total time 1.02944 hours\n",
      "Training at Epoch 23 iteration 200 with loss 0.35031. Total time 1.04138 hours\n",
      "Training at Epoch 23 iteration 300 with loss 0.31600. Total time 1.05361 hours\n",
      "Validation at Epoch 23 , MSE: 0.29925 , Pearson Correlation: 0.76529 with p-value: 0.0 , Concordance Index: 0.80154\n",
      "Training at Epoch 24 iteration 0 with loss 0.28737. Total time 1.06222 hours\n",
      "Training at Epoch 24 iteration 100 with loss 0.36985. Total time 1.07472 hours\n",
      "Training at Epoch 24 iteration 200 with loss 0.44409. Total time 1.08666 hours\n",
      "Training at Epoch 24 iteration 300 with loss 0.33584. Total time 1.09888 hours\n",
      "Validation at Epoch 24 , MSE: 0.30100 , Pearson Correlation: 0.77619 with p-value: 0.0 , Concordance Index: 0.81211\n",
      "Training at Epoch 25 iteration 0 with loss 0.26289. Total time 1.1075 hours\n",
      "Training at Epoch 25 iteration 100 with loss 0.34998. Total time 1.12 hours\n",
      "Training at Epoch 25 iteration 200 with loss 0.32742. Total time 1.13222 hours\n",
      "Training at Epoch 25 iteration 300 with loss 0.31240. Total time 1.14416 hours\n",
      "Validation at Epoch 25 , MSE: 0.29261 , Pearson Correlation: 0.78498 with p-value: 0.0 , Concordance Index: 0.81275\n",
      "Training at Epoch 26 iteration 0 with loss 0.33505. Total time 1.15305 hours\n",
      "Training at Epoch 26 iteration 100 with loss 0.34720. Total time 1.16555 hours\n",
      "Training at Epoch 26 iteration 200 with loss 0.40463. Total time 1.1775 hours\n",
      "Training at Epoch 26 iteration 300 with loss 0.38232. Total time 1.18972 hours\n",
      "Validation at Epoch 26 , MSE: 0.28746 , Pearson Correlation: 0.78136 with p-value: 0.0 , Concordance Index: 0.81265\n",
      "Training at Epoch 27 iteration 0 with loss 0.26672. Total time 1.19833 hours\n",
      "Training at Epoch 27 iteration 100 with loss 0.28984. Total time 1.21083 hours\n",
      "Training at Epoch 27 iteration 200 with loss 0.36286. Total time 1.22305 hours\n",
      "Training at Epoch 27 iteration 300 with loss 0.45538. Total time 1.23527 hours\n",
      "Validation at Epoch 27 , MSE: 0.27128 , Pearson Correlation: 0.79453 with p-value: 0.0 , Concordance Index: 0.82146\n",
      "Training at Epoch 28 iteration 0 with loss 0.31568. Total time 1.24416 hours\n",
      "Training at Epoch 28 iteration 100 with loss 0.30344. Total time 1.25666 hours\n",
      "Training at Epoch 28 iteration 200 with loss 0.39175. Total time 1.26861 hours\n",
      "Training at Epoch 28 iteration 300 with loss 0.29972. Total time 1.28083 hours\n",
      "Validation at Epoch 28 , MSE: 0.34021 , Pearson Correlation: 0.78618 with p-value: 0.0 , Concordance Index: 0.81620\n",
      "Training at Epoch 29 iteration 0 with loss 0.37419. Total time 1.28972 hours\n",
      "Training at Epoch 29 iteration 100 with loss 0.24010. Total time 1.30222 hours\n",
      "Training at Epoch 29 iteration 200 with loss 0.25463. Total time 1.31416 hours\n",
      "Training at Epoch 29 iteration 300 with loss 0.42771. Total time 1.32611 hours\n",
      "Validation at Epoch 29 , MSE: 0.27807 , Pearson Correlation: 0.80283 with p-value: 0.0 , Concordance Index: 0.82460\n",
      "Training at Epoch 30 iteration 0 with loss 0.26755. Total time 1.335 hours\n",
      "Training at Epoch 30 iteration 100 with loss 0.27980. Total time 1.3475 hours\n",
      "Training at Epoch 30 iteration 200 with loss 0.26952. Total time 1.35944 hours\n",
      "Training at Epoch 30 iteration 300 with loss 0.30653. Total time 1.37166 hours\n",
      "Validation at Epoch 30 , MSE: 0.28640 , Pearson Correlation: 0.79838 with p-value: 0.0 , Concordance Index: 0.82031\n",
      "Training at Epoch 31 iteration 0 with loss 0.33580. Total time 1.38027 hours\n",
      "Training at Epoch 31 iteration 100 with loss 0.25019. Total time 1.39277 hours\n",
      "Training at Epoch 31 iteration 200 with loss 0.26907. Total time 1.40472 hours\n",
      "Training at Epoch 31 iteration 300 with loss 0.29168. Total time 1.41694 hours\n",
      "Validation at Epoch 31 , MSE: 0.26626 , Pearson Correlation: 0.80355 with p-value: 0.0 , Concordance Index: 0.82365\n",
      "Training at Epoch 32 iteration 0 with loss 0.28312. Total time 1.42555 hours\n",
      "Training at Epoch 32 iteration 100 with loss 0.29476. Total time 1.43805 hours\n",
      "Training at Epoch 32 iteration 200 with loss 0.30289. Total time 1.45027 hours\n",
      "Training at Epoch 32 iteration 300 with loss 0.29161. Total time 1.46222 hours\n",
      "Validation at Epoch 32 , MSE: 0.26035 , Pearson Correlation: 0.80802 with p-value: 0.0 , Concordance Index: 0.82591\n",
      "Training at Epoch 33 iteration 0 with loss 0.29817. Total time 1.47083 hours\n",
      "Training at Epoch 33 iteration 100 with loss 0.27967. Total time 1.48333 hours\n",
      "Training at Epoch 33 iteration 200 with loss 0.29501. Total time 1.49555 hours\n",
      "Training at Epoch 33 iteration 300 with loss 0.33256. Total time 1.5075 hours\n",
      "Validation at Epoch 33 , MSE: 0.23655 , Pearson Correlation: 0.82030 with p-value: 0.0 , Concordance Index: 0.83816\n",
      "Training at Epoch 34 iteration 0 with loss 0.25236. Total time 1.51638 hours\n",
      "Training at Epoch 34 iteration 100 with loss 0.28804. Total time 1.52861 hours\n",
      "Training at Epoch 34 iteration 200 with loss 0.28910. Total time 1.54083 hours\n",
      "Training at Epoch 34 iteration 300 with loss 0.33627. Total time 1.55277 hours\n",
      "Validation at Epoch 34 , MSE: 0.33801 , Pearson Correlation: 0.81290 with p-value: 0.0 , Concordance Index: 0.82849\n",
      "Training at Epoch 35 iteration 0 with loss 0.36754. Total time 1.56138 hours\n",
      "Training at Epoch 35 iteration 100 with loss 0.45928. Total time 1.57388 hours\n",
      "Training at Epoch 35 iteration 200 with loss 0.22768. Total time 1.58611 hours\n",
      "Training at Epoch 35 iteration 300 with loss 0.31165. Total time 1.59833 hours\n",
      "Validation at Epoch 35 , MSE: 0.24363 , Pearson Correlation: 0.82374 with p-value: 0.0 , Concordance Index: 0.83614\n",
      "Training at Epoch 36 iteration 0 with loss 0.23058. Total time 1.60694 hours\n",
      "Training at Epoch 36 iteration 100 with loss 0.32262. Total time 1.61944 hours\n",
      "Training at Epoch 36 iteration 200 with loss 0.25497. Total time 1.63166 hours\n",
      "Training at Epoch 36 iteration 300 with loss 0.23585. Total time 1.64388 hours\n",
      "Validation at Epoch 36 , MSE: 0.22912 , Pearson Correlation: 0.82639 with p-value: 0.0 , Concordance Index: 0.83876\n",
      "Training at Epoch 37 iteration 0 with loss 0.27838. Total time 1.6525 hours\n",
      "Training at Epoch 37 iteration 100 with loss 0.19743. Total time 1.665 hours\n",
      "Training at Epoch 37 iteration 200 with loss 0.25894. Total time 1.67722 hours\n",
      "Training at Epoch 37 iteration 300 with loss 0.26122. Total time 1.68916 hours\n",
      "Validation at Epoch 37 , MSE: 0.22779 , Pearson Correlation: 0.82699 with p-value: 0.0 , Concordance Index: 0.84121\n",
      "Training at Epoch 38 iteration 0 with loss 0.27702. Total time 1.69805 hours\n",
      "Training at Epoch 38 iteration 100 with loss 0.24484. Total time 1.71055 hours\n",
      "Training at Epoch 38 iteration 200 with loss 0.26378. Total time 1.7225 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 38 iteration 300 with loss 0.20623. Total time 1.73472 hours\n",
      "Validation at Epoch 38 , MSE: 0.23843 , Pearson Correlation: 0.82379 with p-value: 0.0 , Concordance Index: 0.83962\n",
      "Training at Epoch 39 iteration 0 with loss 0.21800. Total time 1.74361 hours\n",
      "Training at Epoch 39 iteration 100 with loss 0.25011. Total time 1.75611 hours\n",
      "Training at Epoch 39 iteration 200 with loss 0.22881. Total time 1.76805 hours\n",
      "Training at Epoch 39 iteration 300 with loss 0.17528. Total time 1.78 hours\n",
      "Validation at Epoch 39 , MSE: 0.22537 , Pearson Correlation: 0.82834 with p-value: 0.0 , Concordance Index: 0.84563\n",
      "Training at Epoch 40 iteration 0 with loss 0.19840. Total time 1.78888 hours\n",
      "Training at Epoch 40 iteration 100 with loss 0.25397. Total time 1.80138 hours\n",
      "Training at Epoch 40 iteration 200 with loss 0.19293. Total time 1.81333 hours\n",
      "Training at Epoch 40 iteration 300 with loss 0.23820. Total time 1.82527 hours\n",
      "Validation at Epoch 40 , MSE: 0.23967 , Pearson Correlation: 0.83118 with p-value: 0.0 , Concordance Index: 0.84586\n",
      "Training at Epoch 41 iteration 0 with loss 0.25914. Total time 1.83416 hours\n",
      "Training at Epoch 41 iteration 100 with loss 0.29834. Total time 1.84666 hours\n",
      "Training at Epoch 41 iteration 200 with loss 0.30340. Total time 1.85861 hours\n",
      "Training at Epoch 41 iteration 300 with loss 0.29115. Total time 1.87083 hours\n",
      "Validation at Epoch 41 , MSE: 0.22810 , Pearson Correlation: 0.82947 with p-value: 0.0 , Concordance Index: 0.84433\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 40 Testing MSE: 0.2825772580799575 , Pearson Correlation: 0.7890536527140888 with p-value: 0.0 , Concordance Index: 0.7919046926471298\n",
      "Training at Epoch 42 iteration 0 with loss 0.21132. Total time 1.89027 hours\n",
      "Training at Epoch 42 iteration 100 with loss 0.19675. Total time 1.9025 hours\n",
      "Training at Epoch 42 iteration 200 with loss 0.21759. Total time 1.91472 hours\n",
      "Training at Epoch 42 iteration 300 with loss 0.24379. Total time 1.92666 hours\n",
      "Validation at Epoch 42 , MSE: 0.22753 , Pearson Correlation: 0.82821 with p-value: 0.0 , Concordance Index: 0.84059\n",
      "Training at Epoch 43 iteration 0 with loss 0.26735. Total time 1.93555 hours\n",
      "Training at Epoch 43 iteration 100 with loss 0.21252. Total time 1.94777 hours\n",
      "Training at Epoch 43 iteration 200 with loss 0.22922. Total time 1.96 hours\n",
      "Training at Epoch 43 iteration 300 with loss 0.20444. Total time 1.97222 hours\n",
      "Validation at Epoch 43 , MSE: 0.22485 , Pearson Correlation: 0.82965 with p-value: 0.0 , Concordance Index: 0.84528\n",
      "Training at Epoch 44 iteration 0 with loss 0.29955. Total time 1.98083 hours\n",
      "Training at Epoch 44 iteration 100 with loss 0.28722. Total time 1.99333 hours\n",
      "Training at Epoch 44 iteration 200 with loss 0.20463. Total time 2.00527 hours\n",
      "Training at Epoch 44 iteration 300 with loss 0.25303. Total time 2.0175 hours\n",
      "Validation at Epoch 44 , MSE: 0.22177 , Pearson Correlation: 0.83344 with p-value: 0.0 , Concordance Index: 0.84388\n",
      "Training at Epoch 45 iteration 0 with loss 0.20512. Total time 2.02611 hours\n",
      "Training at Epoch 45 iteration 100 with loss 0.27110. Total time 2.03861 hours\n",
      "Training at Epoch 45 iteration 200 with loss 0.23050. Total time 2.05083 hours\n",
      "Training at Epoch 45 iteration 300 with loss 0.27225. Total time 2.06277 hours\n",
      "Validation at Epoch 45 , MSE: 0.24185 , Pearson Correlation: 0.82753 with p-value: 0.0 , Concordance Index: 0.84805\n",
      "Training at Epoch 46 iteration 0 with loss 0.23344. Total time 2.07138 hours\n",
      "Training at Epoch 46 iteration 100 with loss 0.25182. Total time 2.08388 hours\n",
      "Training at Epoch 46 iteration 200 with loss 0.20902. Total time 2.09583 hours\n",
      "Training at Epoch 46 iteration 300 with loss 0.23674. Total time 2.10805 hours\n",
      "Validation at Epoch 46 , MSE: 0.23847 , Pearson Correlation: 0.83684 with p-value: 0.0 , Concordance Index: 0.85106\n",
      "Training at Epoch 47 iteration 0 with loss 0.20953. Total time 2.11666 hours\n",
      "Training at Epoch 47 iteration 100 with loss 0.16384. Total time 2.12916 hours\n",
      "Training at Epoch 47 iteration 200 with loss 0.30211. Total time 2.14111 hours\n",
      "Training at Epoch 47 iteration 300 with loss 0.21759. Total time 2.15333 hours\n",
      "Validation at Epoch 47 , MSE: 0.22585 , Pearson Correlation: 0.83791 with p-value: 0.0 , Concordance Index: 0.84634\n",
      "Training at Epoch 48 iteration 0 with loss 0.22137. Total time 2.16194 hours\n",
      "Training at Epoch 48 iteration 100 with loss 0.21179. Total time 2.17444 hours\n",
      "Training at Epoch 48 iteration 200 with loss 0.17789. Total time 2.18666 hours\n",
      "Training at Epoch 48 iteration 300 with loss 0.21371. Total time 2.19861 hours\n",
      "Validation at Epoch 48 , MSE: 0.21469 , Pearson Correlation: 0.83786 with p-value: 0.0 , Concordance Index: 0.85028\n",
      "Training at Epoch 49 iteration 0 with loss 0.22639. Total time 2.2075 hours\n",
      "Training at Epoch 49 iteration 100 with loss 0.22854. Total time 2.22 hours\n",
      "Training at Epoch 49 iteration 200 with loss 0.22970. Total time 2.23194 hours\n",
      "Training at Epoch 49 iteration 300 with loss 0.20708. Total time 2.24416 hours\n",
      "Validation at Epoch 49 , MSE: 0.22430 , Pearson Correlation: 0.84284 with p-value: 0.0 , Concordance Index: 0.85268\n",
      "Training at Epoch 50 iteration 0 with loss 0.18456. Total time 2.25277 hours\n",
      "Training at Epoch 50 iteration 100 with loss 0.21330. Total time 2.26527 hours\n",
      "Training at Epoch 50 iteration 200 with loss 0.18734. Total time 2.2775 hours\n",
      "Training at Epoch 50 iteration 300 with loss 0.18764. Total time 2.28972 hours\n",
      "Validation at Epoch 50 , MSE: 0.21894 , Pearson Correlation: 0.83826 with p-value: 0.0 , Concordance Index: 0.85139\n",
      "Training at Epoch 51 iteration 0 with loss 0.27069. Total time 2.29861 hours\n",
      "Training at Epoch 51 iteration 100 with loss 0.19964. Total time 2.31083 hours\n",
      "Training at Epoch 51 iteration 200 with loss 0.14379. Total time 2.32305 hours\n",
      "Training at Epoch 51 iteration 300 with loss 0.19954. Total time 2.335 hours\n",
      "Validation at Epoch 51 , MSE: 0.21056 , Pearson Correlation: 0.84149 with p-value: 0.0 , Concordance Index: 0.85033\n",
      "Training at Epoch 52 iteration 0 with loss 0.16919. Total time 2.34388 hours\n",
      "Training at Epoch 52 iteration 100 with loss 0.20175. Total time 2.35611 hours\n",
      "Training at Epoch 52 iteration 200 with loss 0.18989. Total time 2.36833 hours\n",
      "Training at Epoch 52 iteration 300 with loss 0.21709. Total time 2.38027 hours\n",
      "Validation at Epoch 52 , MSE: 0.22046 , Pearson Correlation: 0.83901 with p-value: 0.0 , Concordance Index: 0.84822\n",
      "Training at Epoch 53 iteration 0 with loss 0.25206. Total time 2.38916 hours\n",
      "Training at Epoch 53 iteration 100 with loss 0.24374. Total time 2.40138 hours\n",
      "Training at Epoch 53 iteration 200 with loss 0.19460. Total time 2.41361 hours\n",
      "Training at Epoch 53 iteration 300 with loss 0.26730. Total time 2.42555 hours\n",
      "Validation at Epoch 53 , MSE: 0.20253 , Pearson Correlation: 0.85009 with p-value: 0.0 , Concordance Index: 0.85730\n",
      "Training at Epoch 54 iteration 0 with loss 0.18759. Total time 2.43416 hours\n",
      "Training at Epoch 54 iteration 100 with loss 0.18485. Total time 2.44666 hours\n",
      "Training at Epoch 54 iteration 200 with loss 0.25223. Total time 2.45861 hours\n",
      "Training at Epoch 54 iteration 300 with loss 0.18343. Total time 2.47083 hours\n",
      "Validation at Epoch 54 , MSE: 0.20200 , Pearson Correlation: 0.84880 with p-value: 0.0 , Concordance Index: 0.85525\n",
      "Training at Epoch 55 iteration 0 with loss 0.18146. Total time 2.47944 hours\n",
      "Training at Epoch 55 iteration 100 with loss 0.18863. Total time 2.49194 hours\n",
      "Training at Epoch 55 iteration 200 with loss 0.16242. Total time 2.50388 hours\n",
      "Training at Epoch 55 iteration 300 with loss 0.19921. Total time 2.51611 hours\n",
      "Validation at Epoch 55 , MSE: 0.21354 , Pearson Correlation: 0.83823 with p-value: 0.0 , Concordance Index: 0.85281\n",
      "Training at Epoch 56 iteration 0 with loss 0.17609. Total time 2.52472 hours\n",
      "Training at Epoch 56 iteration 100 with loss 0.19736. Total time 2.53722 hours\n",
      "Training at Epoch 56 iteration 200 with loss 0.17534. Total time 2.54916 hours\n",
      "Training at Epoch 56 iteration 300 with loss 0.15706. Total time 2.56111 hours\n",
      "Validation at Epoch 56 , MSE: 0.21412 , Pearson Correlation: 0.84602 with p-value: 0.0 , Concordance Index: 0.85697\n",
      "Training at Epoch 57 iteration 0 with loss 0.19237. Total time 2.57 hours\n",
      "Training at Epoch 57 iteration 100 with loss 0.17437. Total time 2.5825 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 57 iteration 200 with loss 0.18572. Total time 2.59444 hours\n",
      "Training at Epoch 57 iteration 300 with loss 0.19864. Total time 2.60666 hours\n",
      "Validation at Epoch 57 , MSE: 0.21074 , Pearson Correlation: 0.84994 with p-value: 0.0 , Concordance Index: 0.85343\n",
      "Training at Epoch 58 iteration 0 with loss 0.18760. Total time 2.61527 hours\n",
      "Training at Epoch 58 iteration 100 with loss 0.15053. Total time 2.62777 hours\n",
      "Training at Epoch 58 iteration 200 with loss 0.15787. Total time 2.63972 hours\n",
      "Training at Epoch 58 iteration 300 with loss 0.17802. Total time 2.65166 hours\n",
      "Validation at Epoch 58 , MSE: 0.20190 , Pearson Correlation: 0.84858 with p-value: 0.0 , Concordance Index: 0.85884\n",
      "Training at Epoch 59 iteration 0 with loss 0.20131. Total time 2.66055 hours\n",
      "Training at Epoch 59 iteration 100 with loss 0.17627. Total time 2.67277 hours\n",
      "Training at Epoch 59 iteration 200 with loss 0.19749. Total time 2.68472 hours\n",
      "Training at Epoch 59 iteration 300 with loss 0.13964. Total time 2.69694 hours\n",
      "Validation at Epoch 59 , MSE: 0.20671 , Pearson Correlation: 0.85069 with p-value: 0.0 , Concordance Index: 0.85815\n",
      "Training at Epoch 60 iteration 0 with loss 0.14263. Total time 2.70555 hours\n",
      "Training at Epoch 60 iteration 100 with loss 0.14785. Total time 2.71777 hours\n",
      "Training at Epoch 60 iteration 200 with loss 0.19143. Total time 2.72972 hours\n",
      "Training at Epoch 60 iteration 300 with loss 0.22689. Total time 2.74194 hours\n",
      "Validation at Epoch 60 , MSE: 0.20039 , Pearson Correlation: 0.85171 with p-value: 0.0 , Concordance Index: 0.85861\n",
      "Training at Epoch 61 iteration 0 with loss 0.18282. Total time 2.75055 hours\n",
      "Training at Epoch 61 iteration 100 with loss 0.20932. Total time 2.76305 hours\n",
      "Training at Epoch 61 iteration 200 with loss 0.15876. Total time 2.775 hours\n",
      "Training at Epoch 61 iteration 300 with loss 0.15999. Total time 2.78694 hours\n",
      "Validation at Epoch 61 , MSE: 0.20896 , Pearson Correlation: 0.85481 with p-value: 0.0 , Concordance Index: 0.86134\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 60 Testing MSE: 0.24783991212215262 , Pearson Correlation: 0.8229405110115483 with p-value: 0.0 , Concordance Index: 0.8109900657718501\n",
      "Training at Epoch 62 iteration 0 with loss 0.15987. Total time 2.80638 hours\n",
      "Training at Epoch 62 iteration 100 with loss 0.19499. Total time 2.81888 hours\n",
      "Training at Epoch 62 iteration 200 with loss 0.18429. Total time 2.83083 hours\n",
      "Training at Epoch 62 iteration 300 with loss 0.14993. Total time 2.84277 hours\n",
      "Validation at Epoch 62 , MSE: 0.19459 , Pearson Correlation: 0.85487 with p-value: 0.0 , Concordance Index: 0.85971\n",
      "Training at Epoch 63 iteration 0 with loss 0.15851. Total time 2.85138 hours\n",
      "Training at Epoch 63 iteration 100 with loss 0.13079. Total time 2.86388 hours\n",
      "Training at Epoch 63 iteration 200 with loss 0.14062. Total time 2.87583 hours\n",
      "Training at Epoch 63 iteration 300 with loss 0.16242. Total time 2.88777 hours\n",
      "Validation at Epoch 63 , MSE: 0.19819 , Pearson Correlation: 0.85440 with p-value: 0.0 , Concordance Index: 0.86234\n",
      "Training at Epoch 64 iteration 0 with loss 0.13083. Total time 2.89638 hours\n",
      "Training at Epoch 64 iteration 100 with loss 0.17472. Total time 2.90888 hours\n",
      "Training at Epoch 64 iteration 200 with loss 0.17322. Total time 2.92083 hours\n",
      "Training at Epoch 64 iteration 300 with loss 0.14377. Total time 2.93277 hours\n",
      "Validation at Epoch 64 , MSE: 0.20050 , Pearson Correlation: 0.85518 with p-value: 0.0 , Concordance Index: 0.86145\n",
      "Training at Epoch 65 iteration 0 with loss 0.30302. Total time 2.94138 hours\n",
      "Training at Epoch 65 iteration 100 with loss 0.12791. Total time 2.95361 hours\n",
      "Training at Epoch 65 iteration 200 with loss 0.16363. Total time 2.96555 hours\n",
      "Training at Epoch 65 iteration 300 with loss 0.17094. Total time 2.9775 hours\n",
      "Validation at Epoch 65 , MSE: 0.19122 , Pearson Correlation: 0.85684 with p-value: 0.0 , Concordance Index: 0.86045\n",
      "Training at Epoch 66 iteration 0 with loss 0.18841. Total time 2.98638 hours\n",
      "Training at Epoch 66 iteration 100 with loss 0.11655. Total time 2.99861 hours\n",
      "Training at Epoch 66 iteration 200 with loss 0.21925. Total time 3.01055 hours\n",
      "Training at Epoch 66 iteration 300 with loss 0.13996. Total time 3.0225 hours\n",
      "Validation at Epoch 66 , MSE: 0.19276 , Pearson Correlation: 0.85632 with p-value: 0.0 , Concordance Index: 0.86216\n",
      "Training at Epoch 67 iteration 0 with loss 0.16495. Total time 3.03111 hours\n",
      "Training at Epoch 67 iteration 100 with loss 0.14261. Total time 3.04361 hours\n",
      "Training at Epoch 67 iteration 200 with loss 0.19230. Total time 3.05555 hours\n",
      "Training at Epoch 67 iteration 300 with loss 0.12504. Total time 3.0675 hours\n",
      "Validation at Epoch 67 , MSE: 0.19055 , Pearson Correlation: 0.85826 with p-value: 0.0 , Concordance Index: 0.86552\n",
      "Training at Epoch 68 iteration 0 with loss 0.16800. Total time 3.07611 hours\n",
      "Training at Epoch 68 iteration 100 with loss 0.14775. Total time 3.08833 hours\n",
      "Training at Epoch 68 iteration 200 with loss 0.15705. Total time 3.10027 hours\n",
      "Training at Epoch 68 iteration 300 with loss 0.16685. Total time 3.1125 hours\n",
      "Validation at Epoch 68 , MSE: 0.21348 , Pearson Correlation: 0.85630 with p-value: 0.0 , Concordance Index: 0.86400\n",
      "Training at Epoch 69 iteration 0 with loss 0.14114. Total time 3.12111 hours\n",
      "Training at Epoch 69 iteration 100 with loss 0.21312. Total time 3.13333 hours\n",
      "Training at Epoch 69 iteration 200 with loss 0.14090. Total time 3.14527 hours\n",
      "Training at Epoch 69 iteration 300 with loss 0.13919. Total time 3.15722 hours\n",
      "Validation at Epoch 69 , MSE: 0.19900 , Pearson Correlation: 0.85754 with p-value: 0.0 , Concordance Index: 0.86655\n",
      "Training at Epoch 70 iteration 0 with loss 0.18538. Total time 3.16583 hours\n",
      "Training at Epoch 70 iteration 100 with loss 0.17451. Total time 3.17805 hours\n",
      "Training at Epoch 70 iteration 200 with loss 0.15708. Total time 3.19027 hours\n",
      "Training at Epoch 70 iteration 300 with loss 0.12590. Total time 3.2025 hours\n",
      "Validation at Epoch 70 , MSE: 0.20792 , Pearson Correlation: 0.85381 with p-value: 0.0 , Concordance Index: 0.86387\n",
      "Training at Epoch 71 iteration 0 with loss 0.14204. Total time 3.21111 hours\n",
      "Training at Epoch 71 iteration 100 with loss 0.13480. Total time 3.22361 hours\n",
      "Training at Epoch 71 iteration 200 with loss 0.15262. Total time 3.23583 hours\n",
      "Training at Epoch 71 iteration 300 with loss 0.17861. Total time 3.24777 hours\n",
      "Validation at Epoch 71 , MSE: 0.19811 , Pearson Correlation: 0.85206 with p-value: 0.0 , Concordance Index: 0.86392\n",
      "Training at Epoch 72 iteration 0 with loss 0.14189. Total time 3.25666 hours\n",
      "Training at Epoch 72 iteration 100 with loss 0.14255. Total time 3.26916 hours\n",
      "Training at Epoch 72 iteration 200 with loss 0.16706. Total time 3.28111 hours\n",
      "Training at Epoch 72 iteration 300 with loss 0.17405. Total time 3.29333 hours\n",
      "Validation at Epoch 72 , MSE: 0.19192 , Pearson Correlation: 0.85745 with p-value: 0.0 , Concordance Index: 0.86623\n",
      "Training at Epoch 73 iteration 0 with loss 0.16355. Total time 3.30222 hours\n",
      "Training at Epoch 73 iteration 100 with loss 0.15324. Total time 3.31444 hours\n",
      "Training at Epoch 73 iteration 200 with loss 0.13825. Total time 3.32666 hours\n",
      "Training at Epoch 73 iteration 300 with loss 0.16920. Total time 3.33888 hours\n",
      "Validation at Epoch 73 , MSE: 0.19367 , Pearson Correlation: 0.85744 with p-value: 0.0 , Concordance Index: 0.86555\n",
      "Training at Epoch 74 iteration 0 with loss 0.14180. Total time 3.34777 hours\n",
      "Training at Epoch 74 iteration 100 with loss 0.14947. Total time 3.36 hours\n",
      "Training at Epoch 74 iteration 200 with loss 0.15604. Total time 3.37222 hours\n",
      "Training at Epoch 74 iteration 300 with loss 0.16771. Total time 3.38444 hours\n",
      "Validation at Epoch 74 , MSE: 0.19285 , Pearson Correlation: 0.86047 with p-value: 0.0 , Concordance Index: 0.86743\n",
      "Training at Epoch 75 iteration 0 with loss 0.13529. Total time 3.39333 hours\n",
      "Training at Epoch 75 iteration 100 with loss 0.13169. Total time 3.40583 hours\n",
      "Training at Epoch 75 iteration 200 with loss 0.14606. Total time 3.41805 hours\n",
      "Training at Epoch 75 iteration 300 with loss 0.20954. Total time 3.43027 hours\n",
      "Validation at Epoch 75 , MSE: 0.20606 , Pearson Correlation: 0.85234 with p-value: 0.0 , Concordance Index: 0.86351\n",
      "Training at Epoch 76 iteration 0 with loss 0.15453. Total time 3.43888 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 76 iteration 100 with loss 0.10225. Total time 3.45111 hours\n",
      "Training at Epoch 76 iteration 200 with loss 0.09912. Total time 3.46333 hours\n",
      "Training at Epoch 76 iteration 300 with loss 0.16480. Total time 3.47555 hours\n",
      "Validation at Epoch 76 , MSE: 0.18546 , Pearson Correlation: 0.86198 with p-value: 0.0 , Concordance Index: 0.86693\n",
      "Training at Epoch 77 iteration 0 with loss 0.13203. Total time 3.48416 hours\n",
      "Training at Epoch 77 iteration 100 with loss 0.15191. Total time 3.49666 hours\n",
      "Training at Epoch 77 iteration 200 with loss 0.13957. Total time 3.50888 hours\n",
      "Training at Epoch 77 iteration 300 with loss 0.16041. Total time 3.52111 hours\n",
      "Validation at Epoch 77 , MSE: 0.19292 , Pearson Correlation: 0.85684 with p-value: 0.0 , Concordance Index: 0.86661\n",
      "Training at Epoch 78 iteration 0 with loss 0.13327. Total time 3.53 hours\n",
      "Training at Epoch 78 iteration 100 with loss 0.15437. Total time 3.5425 hours\n",
      "Training at Epoch 78 iteration 200 with loss 0.11250. Total time 3.55472 hours\n",
      "Training at Epoch 78 iteration 300 with loss 0.14917. Total time 3.56694 hours\n",
      "Validation at Epoch 78 , MSE: 0.19547 , Pearson Correlation: 0.85577 with p-value: 0.0 , Concordance Index: 0.86667\n",
      "Training at Epoch 79 iteration 0 with loss 0.15488. Total time 3.57583 hours\n",
      "Training at Epoch 79 iteration 100 with loss 0.12726. Total time 3.58833 hours\n",
      "Training at Epoch 79 iteration 200 with loss 0.14616. Total time 3.60083 hours\n",
      "Training at Epoch 79 iteration 300 with loss 0.20424. Total time 3.61305 hours\n",
      "Validation at Epoch 79 , MSE: 0.19950 , Pearson Correlation: 0.85448 with p-value: 0.0 , Concordance Index: 0.86971\n",
      "Training at Epoch 80 iteration 0 with loss 0.10681. Total time 3.62166 hours\n",
      "Training at Epoch 80 iteration 100 with loss 0.18627. Total time 3.63444 hours\n",
      "Training at Epoch 80 iteration 200 with loss 0.13075. Total time 3.64694 hours\n",
      "Training at Epoch 80 iteration 300 with loss 0.16689. Total time 3.65916 hours\n",
      "Validation at Epoch 80 , MSE: 0.19157 , Pearson Correlation: 0.86248 with p-value: 0.0 , Concordance Index: 0.87026\n",
      "Training at Epoch 81 iteration 0 with loss 0.12404. Total time 3.66805 hours\n",
      "Training at Epoch 81 iteration 100 with loss 0.10314. Total time 3.68055 hours\n",
      "Training at Epoch 81 iteration 200 with loss 0.15522. Total time 3.69277 hours\n",
      "Training at Epoch 81 iteration 300 with loss 0.11942. Total time 3.705 hours\n",
      "Validation at Epoch 81 , MSE: 0.18840 , Pearson Correlation: 0.85919 with p-value: 0.0 , Concordance Index: 0.86616\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 80 Testing MSE: 0.22756208077762424 , Pearson Correlation: 0.8288933416064617 with p-value: 0.0 , Concordance Index: 0.8155444036189416\n",
      "Training at Epoch 82 iteration 0 with loss 0.14796. Total time 3.72472 hours\n",
      "Training at Epoch 82 iteration 100 with loss 0.09709. Total time 3.73722 hours\n",
      "Training at Epoch 82 iteration 200 with loss 0.13438. Total time 3.74916 hours\n",
      "Training at Epoch 82 iteration 300 with loss 0.16810. Total time 3.76138 hours\n",
      "Validation at Epoch 82 , MSE: 0.20455 , Pearson Correlation: 0.85564 with p-value: 0.0 , Concordance Index: 0.86661\n",
      "Training at Epoch 83 iteration 0 with loss 0.13731. Total time 3.77 hours\n",
      "Training at Epoch 83 iteration 100 with loss 0.11063. Total time 3.7825 hours\n",
      "Training at Epoch 83 iteration 200 with loss 0.15069. Total time 3.79444 hours\n",
      "Training at Epoch 83 iteration 300 with loss 0.16959. Total time 3.80638 hours\n",
      "Validation at Epoch 83 , MSE: 0.19592 , Pearson Correlation: 0.85792 with p-value: 0.0 , Concordance Index: 0.86736\n",
      "Training at Epoch 84 iteration 0 with loss 0.15473. Total time 3.815 hours\n",
      "Training at Epoch 84 iteration 100 with loss 0.11904. Total time 3.8275 hours\n",
      "Training at Epoch 84 iteration 200 with loss 0.13976. Total time 3.83944 hours\n",
      "Training at Epoch 84 iteration 300 with loss 0.12528. Total time 3.85138 hours\n",
      "Validation at Epoch 84 , MSE: 0.18921 , Pearson Correlation: 0.86037 with p-value: 0.0 , Concordance Index: 0.86707\n",
      "Training at Epoch 85 iteration 0 with loss 0.10507. Total time 3.86027 hours\n",
      "Training at Epoch 85 iteration 100 with loss 0.14897. Total time 3.8725 hours\n",
      "Training at Epoch 85 iteration 200 with loss 0.13384. Total time 3.88444 hours\n",
      "Training at Epoch 85 iteration 300 with loss 0.11521. Total time 3.89666 hours\n",
      "Validation at Epoch 85 , MSE: 0.19806 , Pearson Correlation: 0.85727 with p-value: 0.0 , Concordance Index: 0.86755\n",
      "Training at Epoch 86 iteration 0 with loss 0.14742. Total time 3.90527 hours\n",
      "Training at Epoch 86 iteration 100 with loss 0.14674. Total time 3.91777 hours\n",
      "Training at Epoch 86 iteration 200 with loss 0.14033. Total time 3.92972 hours\n",
      "Training at Epoch 86 iteration 300 with loss 0.13992. Total time 3.94166 hours\n",
      "Validation at Epoch 86 , MSE: 0.19244 , Pearson Correlation: 0.85862 with p-value: 0.0 , Concordance Index: 0.87006\n",
      "Training at Epoch 87 iteration 0 with loss 0.12129. Total time 3.95027 hours\n",
      "Training at Epoch 87 iteration 100 with loss 0.10322. Total time 3.96277 hours\n",
      "Training at Epoch 87 iteration 200 with loss 0.14295. Total time 3.97472 hours\n",
      "Training at Epoch 87 iteration 300 with loss 0.14363. Total time 3.98666 hours\n",
      "Validation at Epoch 87 , MSE: 0.18321 , Pearson Correlation: 0.86431 with p-value: 0.0 , Concordance Index: 0.87243\n",
      "Training at Epoch 88 iteration 0 with loss 0.13050. Total time 3.99527 hours\n",
      "Training at Epoch 88 iteration 100 with loss 0.13092. Total time 4.0075 hours\n",
      "Training at Epoch 88 iteration 200 with loss 0.15035. Total time 4.01972 hours\n",
      "Training at Epoch 88 iteration 300 with loss 0.12781. Total time 4.03166 hours\n",
      "Validation at Epoch 88 , MSE: 0.18427 , Pearson Correlation: 0.86207 with p-value: 0.0 , Concordance Index: 0.87106\n",
      "Training at Epoch 89 iteration 0 with loss 0.15883. Total time 4.04055 hours\n",
      "Training at Epoch 89 iteration 100 with loss 0.13767. Total time 4.05277 hours\n",
      "Training at Epoch 89 iteration 200 with loss 0.16367. Total time 4.06472 hours\n",
      "Training at Epoch 89 iteration 300 with loss 0.13157. Total time 4.07666 hours\n",
      "Validation at Epoch 89 , MSE: 0.19074 , Pearson Correlation: 0.86029 with p-value: 0.0 , Concordance Index: 0.86999\n",
      "Training at Epoch 90 iteration 0 with loss 0.12293. Total time 4.08527 hours\n",
      "Training at Epoch 90 iteration 100 with loss 0.14785. Total time 4.09777 hours\n",
      "Training at Epoch 90 iteration 200 with loss 0.12160. Total time 4.10972 hours\n",
      "Training at Epoch 90 iteration 300 with loss 0.14674. Total time 4.12166 hours\n",
      "Validation at Epoch 90 , MSE: 0.20288 , Pearson Correlation: 0.85598 with p-value: 0.0 , Concordance Index: 0.86899\n",
      "Training at Epoch 91 iteration 0 with loss 0.14847. Total time 4.13055 hours\n",
      "Training at Epoch 91 iteration 100 with loss 0.14545. Total time 4.14277 hours\n",
      "Training at Epoch 91 iteration 200 with loss 0.13308. Total time 4.15472 hours\n",
      "Training at Epoch 91 iteration 300 with loss 0.13591. Total time 4.16666 hours\n",
      "Validation at Epoch 91 , MSE: 0.18829 , Pearson Correlation: 0.86065 with p-value: 0.0 , Concordance Index: 0.87071\n",
      "Training at Epoch 92 iteration 0 with loss 0.09754. Total time 4.17527 hours\n",
      "Training at Epoch 92 iteration 100 with loss 0.09338. Total time 4.18777 hours\n",
      "Training at Epoch 92 iteration 200 with loss 0.10011. Total time 4.2 hours\n",
      "Training at Epoch 92 iteration 300 with loss 0.14927. Total time 4.21194 hours\n",
      "Validation at Epoch 92 , MSE: 0.18892 , Pearson Correlation: 0.86055 with p-value: 0.0 , Concordance Index: 0.86902\n",
      "Training at Epoch 93 iteration 0 with loss 0.14490. Total time 4.22083 hours\n",
      "Training at Epoch 93 iteration 100 with loss 0.13578. Total time 4.23305 hours\n",
      "Training at Epoch 93 iteration 200 with loss 0.12396. Total time 4.245 hours\n",
      "Training at Epoch 93 iteration 300 with loss 0.10548. Total time 4.25722 hours\n",
      "Validation at Epoch 93 , MSE: 0.19576 , Pearson Correlation: 0.85590 with p-value: 0.0 , Concordance Index: 0.87030\n",
      "Training at Epoch 94 iteration 0 with loss 0.10855. Total time 4.26583 hours\n",
      "Training at Epoch 94 iteration 100 with loss 0.09635. Total time 4.27833 hours\n",
      "Training at Epoch 94 iteration 200 with loss 0.11793. Total time 4.29027 hours\n",
      "Training at Epoch 94 iteration 300 with loss 0.14080. Total time 4.3025 hours\n",
      "Validation at Epoch 94 , MSE: 0.18963 , Pearson Correlation: 0.85799 with p-value: 0.0 , Concordance Index: 0.87012\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 95 iteration 0 with loss 0.10615. Total time 4.31111 hours\n",
      "Training at Epoch 95 iteration 100 with loss 0.15305. Total time 4.32361 hours\n",
      "Training at Epoch 95 iteration 200 with loss 0.09253. Total time 4.33555 hours\n",
      "Training at Epoch 95 iteration 300 with loss 0.12682. Total time 4.34777 hours\n",
      "Validation at Epoch 95 , MSE: 0.19651 , Pearson Correlation: 0.85869 with p-value: 0.0 , Concordance Index: 0.86961\n",
      "Training at Epoch 96 iteration 0 with loss 0.09775. Total time 4.35638 hours\n",
      "Training at Epoch 96 iteration 100 with loss 0.10054. Total time 4.36888 hours\n",
      "Training at Epoch 96 iteration 200 with loss 0.11991. Total time 4.38083 hours\n",
      "Training at Epoch 96 iteration 300 with loss 0.11556. Total time 4.39277 hours\n",
      "Validation at Epoch 96 , MSE: 0.19567 , Pearson Correlation: 0.86067 with p-value: 0.0 , Concordance Index: 0.87295\n",
      "Training at Epoch 97 iteration 0 with loss 0.14588. Total time 4.40166 hours\n",
      "Training at Epoch 97 iteration 100 with loss 0.10178. Total time 4.41388 hours\n",
      "Training at Epoch 97 iteration 200 with loss 0.10963. Total time 4.42583 hours\n",
      "Training at Epoch 97 iteration 300 with loss 0.18123. Total time 4.43805 hours\n",
      "Validation at Epoch 97 , MSE: 0.18717 , Pearson Correlation: 0.86190 with p-value: 0.0 , Concordance Index: 0.86976\n",
      "Training at Epoch 98 iteration 0 with loss 0.11497. Total time 4.44666 hours\n",
      "Training at Epoch 98 iteration 100 with loss 0.15033. Total time 4.45888 hours\n",
      "Training at Epoch 98 iteration 200 with loss 0.13883. Total time 4.47111 hours\n",
      "Training at Epoch 98 iteration 300 with loss 0.11112. Total time 4.48305 hours\n",
      "Validation at Epoch 98 , MSE: 0.18754 , Pearson Correlation: 0.86103 with p-value: 0.0 , Concordance Index: 0.87184\n",
      "Training at Epoch 99 iteration 0 with loss 0.13649. Total time 4.49166 hours\n",
      "Training at Epoch 99 iteration 100 with loss 0.10395. Total time 4.50416 hours\n",
      "Training at Epoch 99 iteration 200 with loss 0.10856. Total time 4.51583 hours\n",
      "Training at Epoch 99 iteration 300 with loss 0.09953. Total time 4.52805 hours\n",
      "Validation at Epoch 99 , MSE: 0.18286 , Pearson Correlation: 0.86331 with p-value: 0.0 , Concordance Index: 0.87249\n",
      "Training at Epoch 100 iteration 0 with loss 0.12275. Total time 4.53694 hours\n",
      "Training at Epoch 100 iteration 100 with loss 0.12882. Total time 4.54944 hours\n",
      "Training at Epoch 100 iteration 200 with loss 0.11822. Total time 4.56166 hours\n",
      "Training at Epoch 100 iteration 300 with loss 0.14269. Total time 4.57388 hours\n",
      "Validation at Epoch 100 , MSE: 0.19657 , Pearson Correlation: 0.85349 with p-value: 0.0 , Concordance Index: 0.87101\n",
      "--- Go for Testing ---\n",
      "Testing MSE: 0.22281504281455894 , Pearson Correlation: 0.8341409270266089 with p-value: 0.0 , Concordance Index: 0.8273826999380505\n",
      "--- Training Finished ---\n"
     ]
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYoAAAELCAYAAADHksFtAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGx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ZC4VZmU35/TTSpaJyvymbrzT88t+RziJOjIinh4P5kZ6/GkdOv8zH+ZMKy/6EkZzNGsKFwrrVlvz+rLL4f5OKwQsiYuk49z2ZdAbxxyIi6TWkSz+PlKxXLYdRIuJ3kpYBb5S0MCK25X3OBl4B/L9x5mlWExcK61brSX+JnyxpBfA74JGI2CTp/wKfl9RDeqLbk6ReTEcBN0XEpTvY93XAOcBFki4ktU28H3isbL2f5vezJC0ltWOsqHIfxvtJvZ6ukfTvwBRST6snGXmmtFlDuDHbulKk5zG/hXT9/wbS4z7/Ji/7D+B4UsPzV0nF4kOkP6yW17Dv7wHvAI4AriE9Oe4fSU83K13vHmBhPu6tOYc/rbLP60j3aOwNXEF6zOZ9wCsjP1fdrFH8hDszMyvkMwozMyvkQmFmZoVcKMzMrJALhZmZFXKhMDOzQi4UZmZWyIXCzMwKuVCYmVmh/w/bZLfPud+EhwAAAABJRU5ErkJggg==\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "drug_encoding = 'Morgan'\n",
    "target_encoding = 'CNN'\n",
    "train, val, test = data_process(X_drug, X_target, y, \n",
    "                                drug_encoding, target_encoding, \n",
    "                                split_method='random',frac=[0.7,0.1,0.2], random_seed = 2)\n",
    "\n",
    "# use the parameters setting provided in the paper: https://arxiv.org/abs/1801.10193\n",
    "config = generate_config(drug_encoding = drug_encoding, \n",
    "                         target_encoding = target_encoding, \n",
    "                         cls_hidden_dims = [1024,1024,512], \n",
    "                         train_epoch = 100, \n",
    "                         LR = 0.001, \n",
    "                         batch_size = 256,\n",
    "                         cnn_target_filters = [32,64,96],\n",
    "                         cnn_target_kernels = [4,8,12]\n",
    "                        )\n",
    "model = models.model_initialize(**config)\n",
    "model.train(train, val, test)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "in total: 118254 drug-target pairs\n",
      "encoding drug...\n",
      "unique drugs: 2068\n",
      "drug encoding finished...\n",
      "encoding protein...\n",
      "unique target sequence: 229\n",
      "protein encoding finished...\n",
      "splitting dataset...\n",
      "Done.\n",
      "Let's use 1 GPU!\n",
      "--- Data Preparation ---\n",
      "--- Go for Training ---\n",
      "Training at Epoch 1 iteration 0 with loss 137.375. Total time 0.00055 hours\n",
      "Training at Epoch 1 iteration 100 with loss 0.73625. Total time 0.01361 hours\n",
      "Training at Epoch 1 iteration 200 with loss 0.77524. Total time 0.02611 hours\n",
      "Training at Epoch 1 iteration 300 with loss 0.53874. Total time 0.03861 hours\n",
      "Validation at Epoch 1 , MSE: 0.43557 , Pearson Correlation: 0.62300 with p-value: 0.0 , Concordance Index: 0.72845\n",
      "Training at Epoch 2 iteration 0 with loss 0.62621. Total time 0.0475 hours\n",
      "Training at Epoch 2 iteration 100 with loss 0.53729. Total time 0.06055 hours\n",
      "Training at Epoch 2 iteration 200 with loss 0.53652. Total time 0.07305 hours\n",
      "Training at Epoch 2 iteration 300 with loss 0.62497. Total time 0.08527 hours\n",
      "Validation at Epoch 2 , MSE: 0.39649 , Pearson Correlation: 0.67185 with p-value: 0.0 , Concordance Index: 0.76154\n",
      "Training at Epoch 3 iteration 0 with loss 0.53607. Total time 0.09416 hours\n",
      "Training at Epoch 3 iteration 100 with loss 0.63429. Total time 0.10666 hours\n",
      "Training at Epoch 3 iteration 200 with loss 0.55238. Total time 0.11888 hours\n",
      "Training at Epoch 3 iteration 300 with loss 0.71161. Total time 0.13138 hours\n",
      "Validation at Epoch 3 , MSE: 0.39586 , Pearson Correlation: 0.68508 with p-value: 0.0 , Concordance Index: 0.77513\n",
      "Training at Epoch 4 iteration 0 with loss 0.46794. Total time 0.14027 hours\n",
      "Training at Epoch 4 iteration 100 with loss 0.70592. Total time 0.15277 hours\n",
      "Training at Epoch 4 iteration 200 with loss 0.48416. Total time 0.16527 hours\n",
      "Training at Epoch 4 iteration 300 with loss 0.49529. Total time 0.17777 hours\n",
      "Validation at Epoch 4 , MSE: 0.45934 , Pearson Correlation: 0.69426 with p-value: 0.0 , Concordance Index: 0.77600\n",
      "Training at Epoch 5 iteration 0 with loss 0.68272. Total time 0.18666 hours\n",
      "Training at Epoch 5 iteration 100 with loss 0.55647. Total time 0.19916 hours\n",
      "Training at Epoch 5 iteration 200 with loss 0.45495. Total time 0.21138 hours\n",
      "Training at Epoch 5 iteration 300 with loss 0.66338. Total time 0.22361 hours\n",
      "Validation at Epoch 5 , MSE: 0.41195 , Pearson Correlation: 0.69573 with p-value: 0.0 , Concordance Index: 0.77669\n",
      "Training at Epoch 6 iteration 0 with loss 0.60721. Total time 0.2325 hours\n",
      "Training at Epoch 6 iteration 100 with loss 0.49610. Total time 0.245 hours\n",
      "Training at Epoch 6 iteration 200 with loss 0.61494. Total time 0.2575 hours\n",
      "Training at Epoch 6 iteration 300 with loss 0.46168. Total time 0.26972 hours\n",
      "Validation at Epoch 6 , MSE: 0.37019 , Pearson Correlation: 0.69362 with p-value: 0.0 , Concordance Index: 0.77476\n",
      "Training at Epoch 7 iteration 0 with loss 0.46543. Total time 0.27861 hours\n",
      "Training at Epoch 7 iteration 100 with loss 0.57097. Total time 0.29111 hours\n",
      "Training at Epoch 7 iteration 200 with loss 0.50702. Total time 0.30361 hours\n",
      "Training at Epoch 7 iteration 300 with loss 0.80186. Total time 0.31583 hours\n",
      "Validation at Epoch 7 , MSE: 0.43107 , Pearson Correlation: 0.69451 with p-value: 0.0 , Concordance Index: 0.77930\n",
      "Training at Epoch 8 iteration 0 with loss 0.44603. Total time 0.32472 hours\n",
      "Training at Epoch 8 iteration 100 with loss 0.69652. Total time 0.33722 hours\n",
      "Training at Epoch 8 iteration 200 with loss 0.62096. Total time 0.34944 hours\n",
      "Training at Epoch 8 iteration 300 with loss 0.57744. Total time 0.36166 hours\n",
      "Validation at Epoch 8 , MSE: 0.65092 , Pearson Correlation: 0.69387 with p-value: 0.0 , Concordance Index: 0.77813\n",
      "Training at Epoch 9 iteration 0 with loss 0.77665. Total time 0.37083 hours\n",
      "Training at Epoch 9 iteration 100 with loss 0.52356. Total time 0.38333 hours\n",
      "Training at Epoch 9 iteration 200 with loss 0.40369. Total time 0.39555 hours\n",
      "Training at Epoch 9 iteration 300 with loss 0.72641. Total time 0.40777 hours\n",
      "Validation at Epoch 9 , MSE: 0.42831 , Pearson Correlation: 0.69911 with p-value: 0.0 , Concordance Index: 0.77864\n",
      "Training at Epoch 10 iteration 0 with loss 0.68815. Total time 0.41638 hours\n",
      "Training at Epoch 10 iteration 100 with loss 0.57422. Total time 0.42916 hours\n",
      "Training at Epoch 10 iteration 200 with loss 0.42554. Total time 0.44138 hours\n",
      "Training at Epoch 10 iteration 300 with loss 0.42566. Total time 0.45388 hours\n",
      "Validation at Epoch 10 , MSE: 0.36501 , Pearson Correlation: 0.69861 with p-value: 0.0 , Concordance Index: 0.77826\n",
      "Training at Epoch 11 iteration 0 with loss 0.40399. Total time 0.4625 hours\n",
      "Training at Epoch 11 iteration 100 with loss 0.54569. Total time 0.47527 hours\n",
      "Training at Epoch 11 iteration 200 with loss 0.41806. Total time 0.4875 hours\n",
      "Training at Epoch 11 iteration 300 with loss 0.50631. Total time 0.49972 hours\n",
      "Validation at Epoch 11 , MSE: 0.40697 , Pearson Correlation: 0.69922 with p-value: 0.0 , Concordance Index: 0.78387\n",
      "Training at Epoch 12 iteration 0 with loss 0.46051. Total time 0.50861 hours\n",
      "Training at Epoch 12 iteration 100 with loss 0.61094. Total time 0.52138 hours\n",
      "Training at Epoch 12 iteration 200 with loss 0.42329. Total time 0.53361 hours\n",
      "Training at Epoch 12 iteration 300 with loss 0.49433. Total time 0.54583 hours\n",
      "Validation at Epoch 12 , MSE: 0.51296 , Pearson Correlation: 0.70806 with p-value: 0.0 , Concordance Index: 0.78718\n",
      "Training at Epoch 13 iteration 0 with loss 0.52582. Total time 0.55472 hours\n",
      "Training at Epoch 13 iteration 100 with loss 0.44062. Total time 0.56722 hours\n",
      "Training at Epoch 13 iteration 200 with loss 0.44664. Total time 0.57972 hours\n",
      "Training at Epoch 13 iteration 300 with loss 0.31655. Total time 0.59194 hours\n",
      "Validation at Epoch 13 , MSE: 0.40520 , Pearson Correlation: 0.73046 with p-value: 0.0 , Concordance Index: 0.78712\n",
      "Training at Epoch 14 iteration 0 with loss 0.58566. Total time 0.60083 hours\n",
      "Training at Epoch 14 iteration 100 with loss 0.40218. Total time 0.61361 hours\n",
      "Training at Epoch 14 iteration 200 with loss 0.45794. Total time 0.62583 hours\n",
      "Training at Epoch 14 iteration 300 with loss 0.55020. Total time 0.63805 hours\n",
      "Validation at Epoch 14 , MSE: 0.31845 , Pearson Correlation: 0.74318 with p-value: 0.0 , Concordance Index: 0.79769\n",
      "Training at Epoch 15 iteration 0 with loss 0.38413. Total time 0.64666 hours\n",
      "Training at Epoch 15 iteration 100 with loss 0.36225. Total time 0.65944 hours\n",
      "Training at Epoch 15 iteration 200 with loss 0.47981. Total time 0.67194 hours\n",
      "Training at Epoch 15 iteration 300 with loss 0.48002. Total time 0.68416 hours\n",
      "Validation at Epoch 15 , MSE: 0.31733 , Pearson Correlation: 0.74360 with p-value: 0.0 , Concordance Index: 0.79190\n",
      "Training at Epoch 16 iteration 0 with loss 0.44895. Total time 0.69305 hours\n",
      "Training at Epoch 16 iteration 100 with loss 0.39458. Total time 0.70555 hours\n",
      "Training at Epoch 16 iteration 200 with loss 0.39297. Total time 0.71805 hours\n",
      "Training at Epoch 16 iteration 300 with loss 0.51085. Total time 0.73027 hours\n",
      "Validation at Epoch 16 , MSE: 0.40823 , Pearson Correlation: 0.74667 with p-value: 0.0 , Concordance Index: 0.80133\n",
      "Training at Epoch 17 iteration 0 with loss 0.54638. Total time 0.73916 hours\n",
      "Training at Epoch 17 iteration 100 with loss 0.39720. Total time 0.75166 hours\n",
      "Training at Epoch 17 iteration 200 with loss 0.49484. Total time 0.76416 hours\n",
      "Training at Epoch 17 iteration 300 with loss 0.44498. Total time 0.77638 hours\n",
      "Validation at Epoch 17 , MSE: 0.30634 , Pearson Correlation: 0.75647 with p-value: 0.0 , Concordance Index: 0.79785\n",
      "Training at Epoch 18 iteration 0 with loss 0.29820. Total time 0.78527 hours\n",
      "Training at Epoch 18 iteration 100 with loss 0.41352. Total time 0.79777 hours\n",
      "Training at Epoch 18 iteration 200 with loss 0.38789. Total time 0.81 hours\n",
      "Training at Epoch 18 iteration 300 with loss 0.34479. Total time 0.82222 hours\n",
      "Validation at Epoch 18 , MSE: 0.30037 , Pearson Correlation: 0.76677 with p-value: 0.0 , Concordance Index: 0.80520\n",
      "Training at Epoch 19 iteration 0 with loss 0.31922. Total time 0.83111 hours\n",
      "Training at Epoch 19 iteration 100 with loss 0.37023. Total time 0.84361 hours\n",
      "Training at Epoch 19 iteration 200 with loss 0.36220. Total time 0.85583 hours\n",
      "Training at Epoch 19 iteration 300 with loss 0.41282. Total time 0.86805 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Validation at Epoch 19 , MSE: 0.33630 , Pearson Correlation: 0.76612 with p-value: 0.0 , Concordance Index: 0.80940\n",
      "Training at Epoch 20 iteration 0 with loss 0.29275. Total time 0.87694 hours\n",
      "Training at Epoch 20 iteration 100 with loss 0.46536. Total time 0.88972 hours\n",
      "Training at Epoch 20 iteration 200 with loss 0.33116. Total time 0.90194 hours\n",
      "Training at Epoch 20 iteration 300 with loss 0.47634. Total time 0.91444 hours\n",
      "Validation at Epoch 20 , MSE: 0.29143 , Pearson Correlation: 0.77240 with p-value: 0.0 , Concordance Index: 0.80839\n",
      "Training at Epoch 21 iteration 0 with loss 0.29394. Total time 0.92305 hours\n",
      "Training at Epoch 21 iteration 100 with loss 0.42355. Total time 0.93583 hours\n",
      "Training at Epoch 21 iteration 200 with loss 0.37267. Total time 0.94805 hours\n",
      "Training at Epoch 21 iteration 300 with loss 0.38278. Total time 0.96027 hours\n",
      "Validation at Epoch 21 , MSE: 0.42087 , Pearson Correlation: 0.77943 with p-value: 0.0 , Concordance Index: 0.81654\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 20 Testing MSE: 0.5133557844110197 , Pearson Correlation: 0.705242252243437 with p-value: 0.0 , Concordance Index: 0.750328739712752\n",
      "Training at Epoch 22 iteration 0 with loss 0.54276. Total time 0.98 hours\n",
      "Training at Epoch 22 iteration 100 with loss 0.24287. Total time 0.9925 hours\n",
      "Training at Epoch 22 iteration 200 with loss 0.38438. Total time 1.00472 hours\n",
      "Training at Epoch 22 iteration 300 with loss 0.37010. Total time 1.01694 hours\n",
      "Validation at Epoch 22 , MSE: 0.29168 , Pearson Correlation: 0.76732 with p-value: 0.0 , Concordance Index: 0.81044\n",
      "Training at Epoch 23 iteration 0 with loss 0.39681. Total time 1.02583 hours\n",
      "Training at Epoch 23 iteration 100 with loss 0.82359. Total time 1.03833 hours\n",
      "Training at Epoch 23 iteration 200 with loss 0.32189. Total time 1.05083 hours\n",
      "Training at Epoch 23 iteration 300 with loss 0.29389. Total time 1.06305 hours\n",
      "Validation at Epoch 23 , MSE: 0.36520 , Pearson Correlation: 0.77770 with p-value: 0.0 , Concordance Index: 0.81205\n",
      "Training at Epoch 24 iteration 0 with loss 0.34063. Total time 1.07194 hours\n",
      "Training at Epoch 24 iteration 100 with loss 0.39976. Total time 1.08444 hours\n",
      "Training at Epoch 24 iteration 200 with loss 0.31258. Total time 1.09694 hours\n",
      "Training at Epoch 24 iteration 300 with loss 0.37529. Total time 1.10916 hours\n",
      "Validation at Epoch 24 , MSE: 0.34101 , Pearson Correlation: 0.76868 with p-value: 0.0 , Concordance Index: 0.80631\n",
      "Training at Epoch 25 iteration 0 with loss 0.33034. Total time 1.11805 hours\n",
      "Training at Epoch 25 iteration 100 with loss 0.30578. Total time 1.13055 hours\n",
      "Training at Epoch 25 iteration 200 with loss 0.29794. Total time 1.14277 hours\n",
      "Training at Epoch 25 iteration 300 with loss 0.38441. Total time 1.155 hours\n",
      "Validation at Epoch 25 , MSE: 0.26193 , Pearson Correlation: 0.79721 with p-value: 0.0 , Concordance Index: 0.82324\n",
      "Training at Epoch 26 iteration 0 with loss 0.30592. Total time 1.16388 hours\n",
      "Training at Epoch 26 iteration 100 with loss 0.40367. Total time 1.17638 hours\n",
      "Training at Epoch 26 iteration 200 with loss 0.30690. Total time 1.18861 hours\n",
      "Training at Epoch 26 iteration 300 with loss 0.30712. Total time 1.20083 hours\n",
      "Validation at Epoch 26 , MSE: 0.25534 , Pearson Correlation: 0.80306 with p-value: 0.0 , Concordance Index: 0.82325\n",
      "Training at Epoch 27 iteration 0 with loss 0.33421. Total time 1.20972 hours\n",
      "Training at Epoch 27 iteration 100 with loss 0.38857. Total time 1.2225 hours\n",
      "Training at Epoch 27 iteration 200 with loss 0.38022. Total time 1.23472 hours\n",
      "Training at Epoch 27 iteration 300 with loss 0.30239. Total time 1.24694 hours\n",
      "Validation at Epoch 27 , MSE: 0.25267 , Pearson Correlation: 0.80247 with p-value: 0.0 , Concordance Index: 0.83014\n",
      "Training at Epoch 28 iteration 0 with loss 0.36333. Total time 1.25583 hours\n",
      "Training at Epoch 28 iteration 100 with loss 0.28332. Total time 1.26833 hours\n",
      "Training at Epoch 28 iteration 200 with loss 0.32994. Total time 1.28055 hours\n",
      "Training at Epoch 28 iteration 300 with loss 0.35692. Total time 1.29277 hours\n",
      "Validation at Epoch 28 , MSE: 0.28566 , Pearson Correlation: 0.80660 with p-value: 0.0 , Concordance Index: 0.82836\n",
      "Training at Epoch 29 iteration 0 with loss 0.31927. Total time 1.30166 hours\n",
      "Training at Epoch 29 iteration 100 with loss 0.28215. Total time 1.31444 hours\n",
      "Training at Epoch 29 iteration 200 with loss 0.31426. Total time 1.32666 hours\n",
      "Training at Epoch 29 iteration 300 with loss 0.27891. Total time 1.33888 hours\n",
      "Validation at Epoch 29 , MSE: 0.24446 , Pearson Correlation: 0.81313 with p-value: 0.0 , Concordance Index: 0.83268\n",
      "Training at Epoch 30 iteration 0 with loss 0.28945. Total time 1.34777 hours\n",
      "Training at Epoch 30 iteration 100 with loss 0.27547. Total time 1.36055 hours\n",
      "Training at Epoch 30 iteration 200 with loss 0.23111. Total time 1.37277 hours\n",
      "Training at Epoch 30 iteration 300 with loss 0.25665. Total time 1.385 hours\n",
      "Validation at Epoch 30 , MSE: 0.24430 , Pearson Correlation: 0.81746 with p-value: 0.0 , Concordance Index: 0.83139\n",
      "Training at Epoch 31 iteration 0 with loss 0.28014. Total time 1.39388 hours\n",
      "Training at Epoch 31 iteration 100 with loss 0.23673. Total time 1.40638 hours\n",
      "Training at Epoch 31 iteration 200 with loss 0.25709. Total time 1.41861 hours\n",
      "Training at Epoch 31 iteration 300 with loss 0.23629. Total time 1.43111 hours\n",
      "Validation at Epoch 31 , MSE: 0.23055 , Pearson Correlation: 0.82530 with p-value: 0.0 , Concordance Index: 0.83564\n",
      "Training at Epoch 32 iteration 0 with loss 0.20182. Total time 1.44 hours\n",
      "Training at Epoch 32 iteration 100 with loss 0.31524. Total time 1.4525 hours\n",
      "Training at Epoch 32 iteration 200 with loss 0.39666. Total time 1.46444 hours\n",
      "Training at Epoch 32 iteration 300 with loss 0.26790. Total time 1.47666 hours\n",
      "Validation at Epoch 32 , MSE: 0.23530 , Pearson Correlation: 0.82178 with p-value: 0.0 , Concordance Index: 0.83220\n",
      "Training at Epoch 33 iteration 0 with loss 0.20154. Total time 1.48555 hours\n",
      "Training at Epoch 33 iteration 100 with loss 0.26558. Total time 1.49833 hours\n",
      "Training at Epoch 33 iteration 200 with loss 0.35455. Total time 1.51055 hours\n",
      "Training at Epoch 33 iteration 300 with loss 0.28179. Total time 1.52277 hours\n",
      "Validation at Epoch 33 , MSE: 0.23899 , Pearson Correlation: 0.81921 with p-value: 0.0 , Concordance Index: 0.83443\n",
      "Training at Epoch 34 iteration 0 with loss 0.29812. Total time 1.53138 hours\n",
      "Training at Epoch 34 iteration 100 with loss 0.29691. Total time 1.54388 hours\n",
      "Training at Epoch 34 iteration 200 with loss 0.28243. Total time 1.55611 hours\n",
      "Training at Epoch 34 iteration 300 with loss 0.31626. Total time 1.56833 hours\n",
      "Validation at Epoch 34 , MSE: 0.23662 , Pearson Correlation: 0.83437 with p-value: 0.0 , Concordance Index: 0.84062\n",
      "Training at Epoch 35 iteration 0 with loss 0.31906. Total time 1.57694 hours\n",
      "Training at Epoch 35 iteration 100 with loss 0.34489. Total time 1.58972 hours\n",
      "Training at Epoch 35 iteration 200 with loss 0.33212. Total time 1.60194 hours\n",
      "Training at Epoch 35 iteration 300 with loss 0.25485. Total time 1.61416 hours\n",
      "Validation at Epoch 35 , MSE: 0.22670 , Pearson Correlation: 0.83004 with p-value: 0.0 , Concordance Index: 0.84119\n",
      "Training at Epoch 36 iteration 0 with loss 0.23680. Total time 1.62305 hours\n",
      "Training at Epoch 36 iteration 100 with loss 0.22398. Total time 1.63583 hours\n",
      "Training at Epoch 36 iteration 200 with loss 0.24013. Total time 1.64777 hours\n",
      "Training at Epoch 36 iteration 300 with loss 0.23411. Total time 1.66 hours\n",
      "Validation at Epoch 36 , MSE: 0.23193 , Pearson Correlation: 0.83278 with p-value: 0.0 , Concordance Index: 0.84257\n",
      "Training at Epoch 37 iteration 0 with loss 0.27096. Total time 1.66916 hours\n",
      "Training at Epoch 37 iteration 100 with loss 0.23392. Total time 1.68194 hours\n",
      "Training at Epoch 37 iteration 200 with loss 0.23013. Total time 1.69416 hours\n",
      "Training at Epoch 37 iteration 300 with loss 0.27857. Total time 1.70611 hours\n",
      "Validation at Epoch 37 , MSE: 0.24174 , Pearson Correlation: 0.82633 with p-value: 0.0 , Concordance Index: 0.84536\n",
      "Training at Epoch 38 iteration 0 with loss 0.29366. Total time 1.715 hours\n",
      "Training at Epoch 38 iteration 100 with loss 0.19100. Total time 1.72777 hours\n",
      "Training at Epoch 38 iteration 200 with loss 0.24064. Total time 1.73972 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 38 iteration 300 with loss 0.30229. Total time 1.75194 hours\n",
      "Validation at Epoch 38 , MSE: 0.25498 , Pearson Correlation: 0.83424 with p-value: 0.0 , Concordance Index: 0.84485\n",
      "Training at Epoch 39 iteration 0 with loss 0.31150. Total time 1.76055 hours\n",
      "Training at Epoch 39 iteration 100 with loss 0.21874. Total time 1.77305 hours\n",
      "Training at Epoch 39 iteration 200 with loss 0.30249. Total time 1.78527 hours\n",
      "Training at Epoch 39 iteration 300 with loss 0.26350. Total time 1.79722 hours\n",
      "Validation at Epoch 39 , MSE: 0.25374 , Pearson Correlation: 0.83439 with p-value: 0.0 , Concordance Index: 0.84594\n",
      "Training at Epoch 40 iteration 0 with loss 0.22057. Total time 1.80611 hours\n",
      "Training at Epoch 40 iteration 100 with loss 0.25243. Total time 1.81944 hours\n",
      "Training at Epoch 40 iteration 200 with loss 0.30952. Total time 1.83222 hours\n",
      "Training at Epoch 40 iteration 300 with loss 0.26802. Total time 1.845 hours\n",
      "Validation at Epoch 40 , MSE: 0.20454 , Pearson Correlation: 0.84352 with p-value: 0.0 , Concordance Index: 0.84802\n",
      "Training at Epoch 41 iteration 0 with loss 0.28378. Total time 1.85416 hours\n",
      "Training at Epoch 41 iteration 100 with loss 0.25935. Total time 1.86722 hours\n",
      "Training at Epoch 41 iteration 200 with loss 0.24948. Total time 1.87972 hours\n",
      "Training at Epoch 41 iteration 300 with loss 0.22116. Total time 1.8925 hours\n",
      "Validation at Epoch 41 , MSE: 0.22465 , Pearson Correlation: 0.83628 with p-value: 0.0 , Concordance Index: 0.84690\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 40 Testing MSE: 0.301312128367291 , Pearson Correlation: 0.778220431539234 with p-value: 0.0 , Concordance Index: 0.785487306512232\n",
      "Training at Epoch 42 iteration 0 with loss 0.26710. Total time 1.91222 hours\n",
      "Training at Epoch 42 iteration 100 with loss 0.24519. Total time 1.92472 hours\n",
      "Training at Epoch 42 iteration 200 with loss 0.22995. Total time 1.93722 hours\n",
      "Training at Epoch 42 iteration 300 with loss 0.27156. Total time 1.95 hours\n",
      "Validation at Epoch 42 , MSE: 0.21392 , Pearson Correlation: 0.83688 with p-value: 0.0 , Concordance Index: 0.85131\n",
      "Training at Epoch 43 iteration 0 with loss 0.22010. Total time 1.95861 hours\n",
      "Training at Epoch 43 iteration 100 with loss 0.21967. Total time 1.97166 hours\n",
      "Training at Epoch 43 iteration 200 with loss 0.22507. Total time 1.98416 hours\n",
      "Training at Epoch 43 iteration 300 with loss 0.22089. Total time 1.99638 hours\n",
      "Validation at Epoch 43 , MSE: 0.20766 , Pearson Correlation: 0.84271 with p-value: 0.0 , Concordance Index: 0.85346\n",
      "Training at Epoch 44 iteration 0 with loss 0.24686. Total time 2.00527 hours\n",
      "Training at Epoch 44 iteration 100 with loss 0.16761. Total time 2.01805 hours\n",
      "Training at Epoch 44 iteration 200 with loss 0.26257. Total time 2.03055 hours\n",
      "Training at Epoch 44 iteration 300 with loss 0.25247. Total time 2.04305 hours\n",
      "Validation at Epoch 44 , MSE: 0.20739 , Pearson Correlation: 0.84710 with p-value: 0.0 , Concordance Index: 0.85266\n",
      "Training at Epoch 45 iteration 0 with loss 0.26895. Total time 2.05194 hours\n",
      "Training at Epoch 45 iteration 100 with loss 0.25781. Total time 2.065 hours\n",
      "Training at Epoch 45 iteration 200 with loss 0.25465. Total time 2.0775 hours\n",
      "Training at Epoch 45 iteration 300 with loss 0.24050. Total time 2.09 hours\n",
      "Validation at Epoch 45 , MSE: 0.20746 , Pearson Correlation: 0.84312 with p-value: 0.0 , Concordance Index: 0.84764\n",
      "Training at Epoch 46 iteration 0 with loss 0.24435. Total time 2.09861 hours\n",
      "Training at Epoch 46 iteration 100 with loss 0.21849. Total time 2.11166 hours\n",
      "Training at Epoch 46 iteration 200 with loss 0.33169. Total time 2.12416 hours\n",
      "Training at Epoch 46 iteration 300 with loss 0.22991. Total time 2.13666 hours\n",
      "Validation at Epoch 46 , MSE: 0.20845 , Pearson Correlation: 0.84223 with p-value: 0.0 , Concordance Index: 0.85357\n",
      "Training at Epoch 47 iteration 0 with loss 0.19718. Total time 2.14555 hours\n",
      "Training at Epoch 47 iteration 100 with loss 0.24698. Total time 2.15861 hours\n",
      "Training at Epoch 47 iteration 200 with loss 0.21962. Total time 2.17111 hours\n",
      "Training at Epoch 47 iteration 300 with loss 0.27884. Total time 2.18361 hours\n",
      "Validation at Epoch 47 , MSE: 0.21872 , Pearson Correlation: 0.84782 with p-value: 0.0 , Concordance Index: 0.85424\n",
      "Training at Epoch 48 iteration 0 with loss 0.23357. Total time 2.1925 hours\n",
      "Training at Epoch 48 iteration 100 with loss 0.20414. Total time 2.20527 hours\n",
      "Training at Epoch 48 iteration 200 with loss 0.24245. Total time 2.21777 hours\n",
      "Training at Epoch 48 iteration 300 with loss 0.24829. Total time 2.23027 hours\n",
      "Validation at Epoch 48 , MSE: 0.22658 , Pearson Correlation: 0.85081 with p-value: 0.0 , Concordance Index: 0.85336\n",
      "Training at Epoch 49 iteration 0 with loss 0.22504. Total time 2.23916 hours\n",
      "Training at Epoch 49 iteration 100 with loss 0.18441. Total time 2.25194 hours\n",
      "Training at Epoch 49 iteration 200 with loss 0.23975. Total time 2.26444 hours\n",
      "Training at Epoch 49 iteration 300 with loss 0.21533. Total time 2.27694 hours\n",
      "Validation at Epoch 49 , MSE: 0.21962 , Pearson Correlation: 0.84402 with p-value: 0.0 , Concordance Index: 0.85343\n",
      "Training at Epoch 50 iteration 0 with loss 0.20933. Total time 2.28583 hours\n",
      "Training at Epoch 50 iteration 100 with loss 0.27434. Total time 2.29861 hours\n",
      "Training at Epoch 50 iteration 200 with loss 0.28145. Total time 2.31083 hours\n",
      "Training at Epoch 50 iteration 300 with loss 0.23512. Total time 2.32305 hours\n",
      "Validation at Epoch 50 , MSE: 0.21372 , Pearson Correlation: 0.85042 with p-value: 0.0 , Concordance Index: 0.85455\n",
      "Training at Epoch 51 iteration 0 with loss 0.22588. Total time 2.33166 hours\n",
      "Training at Epoch 51 iteration 100 with loss 0.25906. Total time 2.34416 hours\n",
      "Training at Epoch 51 iteration 200 with loss 0.23461. Total time 2.35638 hours\n",
      "Training at Epoch 51 iteration 300 with loss 0.24975. Total time 2.36833 hours\n",
      "Validation at Epoch 51 , MSE: 0.21783 , Pearson Correlation: 0.84982 with p-value: 0.0 , Concordance Index: 0.85895\n",
      "Training at Epoch 52 iteration 0 with loss 0.17407. Total time 2.37722 hours\n",
      "Training at Epoch 52 iteration 100 with loss 0.17174. Total time 2.38972 hours\n",
      "Training at Epoch 52 iteration 200 with loss 0.17905. Total time 2.40194 hours\n",
      "Training at Epoch 52 iteration 300 with loss 0.22200. Total time 2.41416 hours\n",
      "Validation at Epoch 52 , MSE: 0.21339 , Pearson Correlation: 0.85043 with p-value: 0.0 , Concordance Index: 0.85726\n",
      "Training at Epoch 53 iteration 0 with loss 0.20068. Total time 2.42277 hours\n",
      "Training at Epoch 53 iteration 100 with loss 0.20355. Total time 2.43527 hours\n",
      "Training at Epoch 53 iteration 200 with loss 0.14932. Total time 2.4475 hours\n",
      "Training at Epoch 53 iteration 300 with loss 0.27666. Total time 2.45972 hours\n",
      "Validation at Epoch 53 , MSE: 0.20212 , Pearson Correlation: 0.85309 with p-value: 0.0 , Concordance Index: 0.85933\n",
      "Training at Epoch 54 iteration 0 with loss 0.22039. Total time 2.46861 hours\n",
      "Training at Epoch 54 iteration 100 with loss 0.14128. Total time 2.48111 hours\n",
      "Training at Epoch 54 iteration 200 with loss 0.14633. Total time 2.49305 hours\n",
      "Training at Epoch 54 iteration 300 with loss 0.17940. Total time 2.50555 hours\n",
      "Validation at Epoch 54 , MSE: 0.19733 , Pearson Correlation: 0.85451 with p-value: 0.0 , Concordance Index: 0.85912\n",
      "Training at Epoch 55 iteration 0 with loss 0.16079. Total time 2.51444 hours\n",
      "Training at Epoch 55 iteration 100 with loss 0.26702. Total time 2.52694 hours\n",
      "Training at Epoch 55 iteration 200 with loss 0.17558. Total time 2.53916 hours\n",
      "Training at Epoch 55 iteration 300 with loss 0.19297. Total time 2.55138 hours\n",
      "Validation at Epoch 55 , MSE: 0.23468 , Pearson Correlation: 0.85764 with p-value: 0.0 , Concordance Index: 0.86087\n",
      "Training at Epoch 56 iteration 0 with loss 0.22535. Total time 2.56027 hours\n",
      "Training at Epoch 56 iteration 100 with loss 0.13971. Total time 2.57305 hours\n",
      "Training at Epoch 56 iteration 200 with loss 0.18536. Total time 2.58555 hours\n",
      "Training at Epoch 56 iteration 300 with loss 0.16167. Total time 2.59805 hours\n",
      "Validation at Epoch 56 , MSE: 0.18955 , Pearson Correlation: 0.85700 with p-value: 0.0 , Concordance Index: 0.85763\n",
      "Training at Epoch 57 iteration 0 with loss 0.17111. Total time 2.60694 hours\n",
      "Training at Epoch 57 iteration 100 with loss 0.18112. Total time 2.61972 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 57 iteration 200 with loss 0.15302. Total time 2.63194 hours\n",
      "Training at Epoch 57 iteration 300 with loss 0.18029. Total time 2.64416 hours\n",
      "Validation at Epoch 57 , MSE: 0.18301 , Pearson Correlation: 0.86370 with p-value: 0.0 , Concordance Index: 0.86423\n",
      "Training at Epoch 58 iteration 0 with loss 0.15484. Total time 2.65305 hours\n",
      "Training at Epoch 58 iteration 100 with loss 0.17261. Total time 2.66555 hours\n",
      "Training at Epoch 58 iteration 200 with loss 0.13548. Total time 2.67777 hours\n",
      "Training at Epoch 58 iteration 300 with loss 0.16311. Total time 2.69 hours\n",
      "Validation at Epoch 58 , MSE: 0.20082 , Pearson Correlation: 0.86161 with p-value: 0.0 , Concordance Index: 0.86161\n",
      "Training at Epoch 59 iteration 0 with loss 0.14742. Total time 2.69888 hours\n",
      "Training at Epoch 59 iteration 100 with loss 0.21020. Total time 2.71166 hours\n",
      "Training at Epoch 59 iteration 200 with loss 0.15788. Total time 2.72388 hours\n",
      "Training at Epoch 59 iteration 300 with loss 0.19274. Total time 2.73611 hours\n",
      "Validation at Epoch 59 , MSE: 0.18085 , Pearson Correlation: 0.86430 with p-value: 0.0 , Concordance Index: 0.86507\n",
      "Training at Epoch 60 iteration 0 with loss 0.15191. Total time 2.745 hours\n",
      "Training at Epoch 60 iteration 100 with loss 0.20232. Total time 2.75722 hours\n",
      "Training at Epoch 60 iteration 200 with loss 0.13493. Total time 2.76972 hours\n",
      "Training at Epoch 60 iteration 300 with loss 0.30425. Total time 2.78166 hours\n",
      "Validation at Epoch 60 , MSE: 0.19818 , Pearson Correlation: 0.85495 with p-value: 0.0 , Concordance Index: 0.86342\n",
      "Training at Epoch 61 iteration 0 with loss 0.18761. Total time 2.79055 hours\n",
      "Training at Epoch 61 iteration 100 with loss 0.16378. Total time 2.80333 hours\n",
      "Training at Epoch 61 iteration 200 with loss 0.19147. Total time 2.81555 hours\n",
      "Training at Epoch 61 iteration 300 with loss 0.20924. Total time 2.8275 hours\n",
      "Validation at Epoch 61 , MSE: 0.18428 , Pearson Correlation: 0.86035 with p-value: 0.0 , Concordance Index: 0.86675\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 60 Testing MSE: 0.24940037173504961 , Pearson Correlation: 0.8072771860385185 with p-value: 0.0 , Concordance Index: 0.8070922096355014\n",
      "Training at Epoch 62 iteration 0 with loss 0.19092. Total time 2.8475 hours\n",
      "Training at Epoch 62 iteration 100 with loss 0.19672. Total time 2.86027 hours\n",
      "Training at Epoch 62 iteration 200 with loss 0.22414. Total time 2.8725 hours\n",
      "Training at Epoch 62 iteration 300 with loss 0.17909. Total time 2.88472 hours\n",
      "Validation at Epoch 62 , MSE: 0.18227 , Pearson Correlation: 0.86196 with p-value: 0.0 , Concordance Index: 0.86502\n",
      "Training at Epoch 63 iteration 0 with loss 0.16639. Total time 2.89361 hours\n",
      "Training at Epoch 63 iteration 100 with loss 0.15172. Total time 2.90611 hours\n",
      "Training at Epoch 63 iteration 200 with loss 0.17146. Total time 2.91861 hours\n",
      "Training at Epoch 63 iteration 300 with loss 0.19497. Total time 2.93055 hours\n",
      "Validation at Epoch 63 , MSE: 0.18329 , Pearson Correlation: 0.86672 with p-value: 0.0 , Concordance Index: 0.86568\n",
      "Training at Epoch 64 iteration 0 with loss 0.18270. Total time 2.93944 hours\n",
      "Training at Epoch 64 iteration 100 with loss 0.16782. Total time 2.95222 hours\n",
      "Training at Epoch 64 iteration 200 with loss 0.15940. Total time 2.96444 hours\n",
      "Training at Epoch 64 iteration 300 with loss 0.14323. Total time 2.97666 hours\n",
      "Validation at Epoch 64 , MSE: 0.20779 , Pearson Correlation: 0.86569 with p-value: 0.0 , Concordance Index: 0.86514\n",
      "Training at Epoch 65 iteration 0 with loss 0.16520. Total time 2.98555 hours\n",
      "Training at Epoch 65 iteration 100 with loss 0.19821. Total time 2.99805 hours\n",
      "Training at Epoch 65 iteration 200 with loss 0.16930. Total time 3.01055 hours\n",
      "Training at Epoch 65 iteration 300 with loss 0.16964. Total time 3.02277 hours\n",
      "Validation at Epoch 65 , MSE: 0.18039 , Pearson Correlation: 0.86585 with p-value: 0.0 , Concordance Index: 0.86769\n",
      "Training at Epoch 66 iteration 0 with loss 0.17830. Total time 3.03166 hours\n",
      "Training at Epoch 66 iteration 100 with loss 0.13314. Total time 3.04416 hours\n",
      "Training at Epoch 66 iteration 200 with loss 0.17714. Total time 3.05638 hours\n",
      "Training at Epoch 66 iteration 300 with loss 0.14060. Total time 3.06888 hours\n",
      "Validation at Epoch 66 , MSE: 0.18350 , Pearson Correlation: 0.86356 with p-value: 0.0 , Concordance Index: 0.86521\n",
      "Training at Epoch 67 iteration 0 with loss 0.13685. Total time 3.07777 hours\n",
      "Training at Epoch 67 iteration 100 with loss 0.13774. Total time 3.09027 hours\n",
      "Training at Epoch 67 iteration 200 with loss 0.17270. Total time 3.1025 hours\n",
      "Training at Epoch 67 iteration 300 with loss 0.14978. Total time 3.11472 hours\n",
      "Validation at Epoch 67 , MSE: 0.18561 , Pearson Correlation: 0.86266 with p-value: 0.0 , Concordance Index: 0.86866\n",
      "Training at Epoch 68 iteration 0 with loss 0.12912. Total time 3.12361 hours\n",
      "Training at Epoch 68 iteration 100 with loss 0.16949. Total time 3.13611 hours\n",
      "Training at Epoch 68 iteration 200 with loss 0.14457. Total time 3.14805 hours\n",
      "Training at Epoch 68 iteration 300 with loss 0.17762. Total time 3.16055 hours\n",
      "Validation at Epoch 68 , MSE: 0.18616 , Pearson Correlation: 0.86514 with p-value: 0.0 , Concordance Index: 0.86808\n",
      "Training at Epoch 69 iteration 0 with loss 0.19789. Total time 3.16944 hours\n",
      "Training at Epoch 69 iteration 100 with loss 0.16247. Total time 3.18222 hours\n",
      "Training at Epoch 69 iteration 200 with loss 0.17576. Total time 3.19444 hours\n",
      "Training at Epoch 69 iteration 300 with loss 0.19629. Total time 3.20694 hours\n",
      "Validation at Epoch 69 , MSE: 0.17799 , Pearson Correlation: 0.86785 with p-value: 0.0 , Concordance Index: 0.87149\n",
      "Training at Epoch 70 iteration 0 with loss 0.17000. Total time 3.21583 hours\n",
      "Training at Epoch 70 iteration 100 with loss 0.13221. Total time 3.22861 hours\n",
      "Training at Epoch 70 iteration 200 with loss 0.14944. Total time 3.24083 hours\n",
      "Training at Epoch 70 iteration 300 with loss 0.18103. Total time 3.25333 hours\n",
      "Validation at Epoch 70 , MSE: 0.18228 , Pearson Correlation: 0.86352 with p-value: 0.0 , Concordance Index: 0.87354\n",
      "Training at Epoch 71 iteration 0 with loss 0.18837. Total time 3.26222 hours\n",
      "Training at Epoch 71 iteration 100 with loss 0.14968. Total time 3.275 hours\n",
      "Training at Epoch 71 iteration 200 with loss 0.12389. Total time 3.28722 hours\n",
      "Training at Epoch 71 iteration 300 with loss 0.16111. Total time 3.29972 hours\n",
      "Validation at Epoch 71 , MSE: 0.17488 , Pearson Correlation: 0.87058 with p-value: 0.0 , Concordance Index: 0.87350\n",
      "Training at Epoch 72 iteration 0 with loss 0.16098. Total time 3.30833 hours\n",
      "Training at Epoch 72 iteration 100 with loss 0.13273. Total time 3.32111 hours\n",
      "Training at Epoch 72 iteration 200 with loss 0.17619. Total time 3.33333 hours\n",
      "Training at Epoch 72 iteration 300 with loss 0.22007. Total time 3.34555 hours\n",
      "Validation at Epoch 72 , MSE: 0.18696 , Pearson Correlation: 0.86846 with p-value: 0.0 , Concordance Index: 0.87334\n",
      "Training at Epoch 73 iteration 0 with loss 0.14580. Total time 3.35472 hours\n",
      "Training at Epoch 73 iteration 100 with loss 0.12727. Total time 3.3675 hours\n",
      "Training at Epoch 73 iteration 200 with loss 0.11441. Total time 3.38 hours\n",
      "Training at Epoch 73 iteration 300 with loss 0.17362. Total time 3.3925 hours\n",
      "Validation at Epoch 73 , MSE: 0.17237 , Pearson Correlation: 0.87114 with p-value: 0.0 , Concordance Index: 0.87278\n",
      "Training at Epoch 74 iteration 0 with loss 0.12857. Total time 3.40138 hours\n",
      "Training at Epoch 74 iteration 100 with loss 0.14886. Total time 3.41416 hours\n",
      "Training at Epoch 74 iteration 200 with loss 0.15058. Total time 3.42666 hours\n",
      "Training at Epoch 74 iteration 300 with loss 0.14641. Total time 3.43944 hours\n",
      "Validation at Epoch 74 , MSE: 0.17767 , Pearson Correlation: 0.87084 with p-value: 0.0 , Concordance Index: 0.87396\n",
      "Training at Epoch 75 iteration 0 with loss 0.11845. Total time 3.44833 hours\n",
      "Training at Epoch 75 iteration 100 with loss 0.18366. Total time 3.46111 hours\n",
      "Training at Epoch 75 iteration 200 with loss 0.13946. Total time 3.47333 hours\n",
      "Training at Epoch 75 iteration 300 with loss 0.14339. Total time 3.48583 hours\n",
      "Validation at Epoch 75 , MSE: 0.17726 , Pearson Correlation: 0.86668 with p-value: 0.0 , Concordance Index: 0.87103\n",
      "Training at Epoch 76 iteration 0 with loss 0.14256. Total time 3.49472 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 76 iteration 100 with loss 0.15816. Total time 3.5075 hours\n",
      "Training at Epoch 76 iteration 200 with loss 0.16535. Total time 3.52 hours\n",
      "Training at Epoch 76 iteration 300 with loss 0.14572. Total time 3.5325 hours\n",
      "Validation at Epoch 76 , MSE: 0.17053 , Pearson Correlation: 0.87170 with p-value: 0.0 , Concordance Index: 0.87517\n",
      "Training at Epoch 77 iteration 0 with loss 0.12331. Total time 3.54138 hours\n",
      "Training at Epoch 77 iteration 100 with loss 0.13318. Total time 3.55416 hours\n",
      "Training at Epoch 77 iteration 200 with loss 0.12983. Total time 3.56638 hours\n",
      "Training at Epoch 77 iteration 300 with loss 0.13751. Total time 3.57888 hours\n",
      "Validation at Epoch 77 , MSE: 0.17509 , Pearson Correlation: 0.86909 with p-value: 0.0 , Concordance Index: 0.87261\n",
      "Training at Epoch 78 iteration 0 with loss 0.14967. Total time 3.58777 hours\n",
      "Training at Epoch 78 iteration 100 with loss 0.16822. Total time 3.60083 hours\n",
      "Training at Epoch 78 iteration 200 with loss 0.14253. Total time 3.61305 hours\n",
      "Training at Epoch 78 iteration 300 with loss 0.13517. Total time 3.62527 hours\n",
      "Validation at Epoch 78 , MSE: 0.18025 , Pearson Correlation: 0.87328 with p-value: 0.0 , Concordance Index: 0.87637\n",
      "Training at Epoch 79 iteration 0 with loss 0.14276. Total time 3.63416 hours\n",
      "Training at Epoch 79 iteration 100 with loss 0.15086. Total time 3.64694 hours\n",
      "Training at Epoch 79 iteration 200 with loss 0.20631. Total time 3.65888 hours\n",
      "Training at Epoch 79 iteration 300 with loss 0.13112. Total time 3.67111 hours\n",
      "Validation at Epoch 79 , MSE: 0.19243 , Pearson Correlation: 0.86934 with p-value: 0.0 , Concordance Index: 0.87416\n",
      "Training at Epoch 80 iteration 0 with loss 0.12731. Total time 3.68 hours\n",
      "Training at Epoch 80 iteration 100 with loss 0.13150. Total time 3.6925 hours\n",
      "Training at Epoch 80 iteration 200 with loss 0.15165. Total time 3.70472 hours\n",
      "Training at Epoch 80 iteration 300 with loss 0.12677. Total time 3.71694 hours\n",
      "Validation at Epoch 80 , MSE: 0.16997 , Pearson Correlation: 0.87229 with p-value: 0.0 , Concordance Index: 0.87656\n",
      "Training at Epoch 81 iteration 0 with loss 0.12952. Total time 3.72611 hours\n",
      "Training at Epoch 81 iteration 100 with loss 0.12195. Total time 3.73888 hours\n",
      "Training at Epoch 81 iteration 200 with loss 0.14717. Total time 3.75111 hours\n",
      "Training at Epoch 81 iteration 300 with loss 0.12953. Total time 3.76305 hours\n",
      "Validation at Epoch 81 , MSE: 0.17353 , Pearson Correlation: 0.87227 with p-value: 0.0 , Concordance Index: 0.87740\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 80 Testing MSE: 0.22719312963008387 , Pearson Correlation: 0.8246263053387476 with p-value: 0.0 , Concordance Index: 0.8143919356754702\n",
      "Training at Epoch 82 iteration 0 with loss 0.09574. Total time 3.78305 hours\n",
      "Training at Epoch 82 iteration 100 with loss 0.13069. Total time 3.79583 hours\n",
      "Training at Epoch 82 iteration 200 with loss 0.11720. Total time 3.80805 hours\n",
      "Training at Epoch 82 iteration 300 with loss 0.11466. Total time 3.82027 hours\n",
      "Validation at Epoch 82 , MSE: 0.17256 , Pearson Correlation: 0.87180 with p-value: 0.0 , Concordance Index: 0.87740\n",
      "Training at Epoch 83 iteration 0 with loss 0.12041. Total time 3.82916 hours\n",
      "Training at Epoch 83 iteration 100 with loss 0.12338. Total time 3.84166 hours\n",
      "Training at Epoch 83 iteration 200 with loss 0.11488. Total time 3.85388 hours\n",
      "Training at Epoch 83 iteration 300 with loss 0.12714. Total time 3.86611 hours\n",
      "Validation at Epoch 83 , MSE: 0.17509 , Pearson Correlation: 0.87401 with p-value: 0.0 , Concordance Index: 0.87667\n",
      "Training at Epoch 84 iteration 0 with loss 0.11893. Total time 3.875 hours\n",
      "Training at Epoch 84 iteration 100 with loss 0.10389. Total time 3.88777 hours\n",
      "Training at Epoch 84 iteration 200 with loss 0.14247. Total time 3.90027 hours\n",
      "Training at Epoch 84 iteration 300 with loss 0.11102. Total time 3.9125 hours\n",
      "Validation at Epoch 84 , MSE: 0.17074 , Pearson Correlation: 0.87145 with p-value: 0.0 , Concordance Index: 0.87542\n",
      "Training at Epoch 85 iteration 0 with loss 0.09864. Total time 3.92138 hours\n",
      "Training at Epoch 85 iteration 100 with loss 0.12966. Total time 3.93388 hours\n",
      "Training at Epoch 85 iteration 200 with loss 0.12108. Total time 3.94611 hours\n",
      "Training at Epoch 85 iteration 300 with loss 0.12665. Total time 3.95833 hours\n",
      "Validation at Epoch 85 , MSE: 0.17019 , Pearson Correlation: 0.87289 with p-value: 0.0 , Concordance Index: 0.87829\n",
      "Training at Epoch 86 iteration 0 with loss 0.15077. Total time 3.96722 hours\n",
      "Training at Epoch 86 iteration 100 with loss 0.13066. Total time 3.98 hours\n",
      "Training at Epoch 86 iteration 200 with loss 0.12164. Total time 3.99222 hours\n",
      "Training at Epoch 86 iteration 300 with loss 0.12198. Total time 4.00444 hours\n",
      "Validation at Epoch 86 , MSE: 0.17120 , Pearson Correlation: 0.87345 with p-value: 0.0 , Concordance Index: 0.87806\n",
      "Training at Epoch 87 iteration 0 with loss 0.09575. Total time 4.01333 hours\n",
      "Training at Epoch 87 iteration 100 with loss 0.11528. Total time 4.02611 hours\n",
      "Training at Epoch 87 iteration 200 with loss 0.14215. Total time 4.03833 hours\n",
      "Training at Epoch 87 iteration 300 with loss 0.11619. Total time 4.05083 hours\n",
      "Validation at Epoch 87 , MSE: 0.17372 , Pearson Correlation: 0.87008 with p-value: 0.0 , Concordance Index: 0.87752\n",
      "Training at Epoch 88 iteration 0 with loss 0.13100. Total time 4.05972 hours\n",
      "Training at Epoch 88 iteration 100 with loss 0.08756. Total time 4.0725 hours\n",
      "Training at Epoch 88 iteration 200 with loss 0.11853. Total time 4.08472 hours\n",
      "Training at Epoch 88 iteration 300 with loss 0.11117. Total time 4.09694 hours\n",
      "Validation at Epoch 88 , MSE: 0.17611 , Pearson Correlation: 0.86967 with p-value: 0.0 , Concordance Index: 0.87607\n",
      "Training at Epoch 89 iteration 0 with loss 0.14032. Total time 4.10583 hours\n",
      "Training at Epoch 89 iteration 100 with loss 0.11447. Total time 4.11861 hours\n",
      "Training at Epoch 89 iteration 200 with loss 0.11391. Total time 4.13055 hours\n",
      "Training at Epoch 89 iteration 300 with loss 0.13497. Total time 4.14277 hours\n",
      "Validation at Epoch 89 , MSE: 0.17126 , Pearson Correlation: 0.87231 with p-value: 0.0 , Concordance Index: 0.87902\n",
      "Training at Epoch 90 iteration 0 with loss 0.13730. Total time 4.15166 hours\n",
      "Training at Epoch 90 iteration 100 with loss 0.11372. Total time 4.16416 hours\n",
      "Training at Epoch 90 iteration 200 with loss 0.10722. Total time 4.17638 hours\n",
      "Training at Epoch 90 iteration 300 with loss 0.13123. Total time 4.18861 hours\n",
      "Validation at Epoch 90 , MSE: 0.17375 , Pearson Correlation: 0.87074 with p-value: 0.0 , Concordance Index: 0.87763\n",
      "Training at Epoch 91 iteration 0 with loss 0.10976. Total time 4.1975 hours\n",
      "Training at Epoch 91 iteration 100 with loss 0.10931. Total time 4.21027 hours\n",
      "Training at Epoch 91 iteration 200 with loss 0.14584. Total time 4.22277 hours\n",
      "Training at Epoch 91 iteration 300 with loss 0.12269. Total time 4.235 hours\n",
      "Validation at Epoch 91 , MSE: 0.17392 , Pearson Correlation: 0.86968 with p-value: 0.0 , Concordance Index: 0.87781\n",
      "Training at Epoch 92 iteration 0 with loss 0.10224. Total time 4.24388 hours\n",
      "Training at Epoch 92 iteration 100 with loss 0.10454. Total time 4.25638 hours\n",
      "Training at Epoch 92 iteration 200 with loss 0.11527. Total time 4.26888 hours\n",
      "Training at Epoch 92 iteration 300 with loss 0.13091. Total time 4.28138 hours\n",
      "Validation at Epoch 92 , MSE: 0.16698 , Pearson Correlation: 0.87626 with p-value: 0.0 , Concordance Index: 0.87843\n",
      "Training at Epoch 93 iteration 0 with loss 0.11481. Total time 4.29027 hours\n",
      "Training at Epoch 93 iteration 100 with loss 0.12979. Total time 4.30305 hours\n",
      "Training at Epoch 93 iteration 200 with loss 0.10375. Total time 4.31555 hours\n",
      "Training at Epoch 93 iteration 300 with loss 0.11000. Total time 4.32805 hours\n",
      "Validation at Epoch 93 , MSE: 0.17337 , Pearson Correlation: 0.87403 with p-value: 0.0 , Concordance Index: 0.87930\n",
      "Training at Epoch 94 iteration 0 with loss 0.10151. Total time 4.33694 hours\n",
      "Training at Epoch 94 iteration 100 with loss 0.13358. Total time 4.35 hours\n",
      "Training at Epoch 94 iteration 200 with loss 0.12526. Total time 4.3625 hours\n",
      "Training at Epoch 94 iteration 300 with loss 0.12200. Total time 4.375 hours\n",
      "Validation at Epoch 94 , MSE: 0.17001 , Pearson Correlation: 0.87262 with p-value: 0.0 , Concordance Index: 0.87890\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 95 iteration 0 with loss 0.11520. Total time 4.38416 hours\n",
      "Training at Epoch 95 iteration 100 with loss 0.10904. Total time 4.39722 hours\n",
      "Training at Epoch 95 iteration 200 with loss 0.10990. Total time 4.41 hours\n",
      "Training at Epoch 95 iteration 300 with loss 0.12183. Total time 4.4225 hours\n",
      "Validation at Epoch 95 , MSE: 0.17161 , Pearson Correlation: 0.87195 with p-value: 0.0 , Concordance Index: 0.87786\n",
      "Training at Epoch 96 iteration 0 with loss 0.11298. Total time 4.43166 hours\n",
      "Training at Epoch 96 iteration 100 with loss 0.11444. Total time 4.44444 hours\n",
      "Training at Epoch 96 iteration 200 with loss 0.13563. Total time 4.45694 hours\n",
      "Training at Epoch 96 iteration 300 with loss 0.09412. Total time 4.46944 hours\n",
      "Validation at Epoch 96 , MSE: 0.17833 , Pearson Correlation: 0.86975 with p-value: 0.0 , Concordance Index: 0.87586\n",
      "Training at Epoch 97 iteration 0 with loss 0.12028. Total time 4.47833 hours\n",
      "Training at Epoch 97 iteration 100 with loss 0.11022. Total time 4.49111 hours\n",
      "Training at Epoch 97 iteration 200 with loss 0.12315. Total time 4.50388 hours\n",
      "Training at Epoch 97 iteration 300 with loss 0.11504. Total time 4.51611 hours\n",
      "Validation at Epoch 97 , MSE: 0.16984 , Pearson Correlation: 0.87471 with p-value: 0.0 , Concordance Index: 0.87914\n",
      "Training at Epoch 98 iteration 0 with loss 0.13366. Total time 4.525 hours\n",
      "Training at Epoch 98 iteration 100 with loss 0.11277. Total time 4.53777 hours\n",
      "Training at Epoch 98 iteration 200 with loss 0.12744. Total time 4.55027 hours\n",
      "Training at Epoch 98 iteration 300 with loss 0.12647. Total time 4.5625 hours\n",
      "Validation at Epoch 98 , MSE: 0.16801 , Pearson Correlation: 0.87492 with p-value: 0.0 , Concordance Index: 0.87947\n",
      "Training at Epoch 99 iteration 0 with loss 0.09943. Total time 4.57138 hours\n",
      "Training at Epoch 99 iteration 100 with loss 0.13899. Total time 4.58416 hours\n",
      "Training at Epoch 99 iteration 200 with loss 0.13638. Total time 4.59638 hours\n",
      "Training at Epoch 99 iteration 300 with loss 0.12815. Total time 4.60888 hours\n",
      "Validation at Epoch 99 , MSE: 0.16878 , Pearson Correlation: 0.87324 with p-value: 0.0 , Concordance Index: 0.87843\n",
      "Training at Epoch 100 iteration 0 with loss 0.08863. Total time 4.61777 hours\n",
      "Training at Epoch 100 iteration 100 with loss 0.11025. Total time 4.63055 hours\n",
      "Training at Epoch 100 iteration 200 with loss 0.13412. Total time 4.64277 hours\n",
      "Training at Epoch 100 iteration 300 with loss 0.08838. Total time 4.655 hours\n",
      "Validation at Epoch 100 , MSE: 0.17183 , Pearson Correlation: 0.87117 with p-value: 0.0 , Concordance Index: 0.87875\n",
      "--- Go for Testing ---\n",
      "Testing MSE: 0.21992828864698843 , Pearson Correlation: 0.8349234113088824 with p-value: 0.0 , Concordance Index: 0.821834630607129\n",
      "--- Training Finished ---\n"
     ]
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYoAAAELCAYAAADHksFtAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjMsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+AADFEAAAeWElEQVR4nO3de5xdZX3v8c83F4kJenIbME1IBpGqgFZgysHLwUv0CEiJWrDIVMNFRxGPWO2p2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+TklXBXOCwiFib97udlCzeBnxyJ+cx24HvKMxKvRx4LjAoaUrhRWrb+DnpkanFbi1PEgC56ud7kh4FtpMmG/xD4IXl++6MpBmkRvevx8hDcYj0RLQfAK8u+8jaQpLI+20m3dEsxGwMfEdhVqrwJLjvVNn+WNn6DlVFucvtNcB1pDuITcBTpF5M08YQ0yzSrK+VqqUeAhaVlVV6pOuTYzy3mROFWZlH8/sJpKqicr8uW680/fKfku4i3hoRvy8U5kd6Pj6GmB7L53lehW3PYyRms6ZworBu9WR+f3ZZ+X+QksELImLlGI89nXQH8UwSkfQ6UtXPfUX7VYuhRET8RtJq4FhJZ0XEU/mYi4BXAP9vjHGa1cWJwrrVw6S/xI+TtAb4DXBfRDwq6f8CX5TUQ3qi2xOkXkyvBm6MiH/dybGvBT4IfFXShaS2iTOBX5Xt97P8fqqklaR2jDVVxmGcSer1dJWkfwR2J/W0eoKRZ0qbNYUbs60rRXoe87tI9f/fIT3u80/ytn8GjiY1PP8LKVl8gvSH1R11HPs64APAK4GrSE+Oeyfp6WbF+90JnJXP+/0cwx9UOea1pDEaM4FLSI/ZvBt4VeTnqps1i59wZ2ZmNfmOwszManKiMDOzmpwozMysJicKMzOryYnCzMxqcqIwM7OanCjMzKwmJwozM6vpvwFP82CrKXNy2wAAAABJRU5ErkJggg==\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "drug_encoding = 'Morgan'\n",
    "target_encoding = 'CNN'\n",
    "train, val, test = data_process(X_drug, X_target, y, \n",
    "                                drug_encoding, target_encoding, \n",
    "                                split_method='random',frac=[0.7,0.1,0.2], random_seed = 3)\n",
    "\n",
    "# use the parameters setting provided in the paper: https://arxiv.org/abs/1801.10193\n",
    "config = generate_config(drug_encoding = drug_encoding, \n",
    "                         target_encoding = target_encoding, \n",
    "                         cls_hidden_dims = [1024,1024,512], \n",
    "                         train_epoch = 100, \n",
    "                         LR = 0.001, \n",
    "                         batch_size = 256,\n",
    "                         cnn_target_filters = [32,64,96],\n",
    "                         cnn_target_kernels = [4,8,12]\n",
    "                        )\n",
    "model = models.model_initialize(**config)\n",
    "model.train(train, val, test)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "in total: 118254 drug-target pairs\n",
      "encoding drug...\n",
      "unique drugs: 2068\n",
      "drug encoding finished...\n",
      "encoding protein...\n",
      "unique target sequence: 229\n",
      "protein encoding finished...\n",
      "splitting dataset...\n",
      "Done.\n",
      "Let's use 1 GPU!\n",
      "--- Data Preparation ---\n",
      "--- Go for Training ---\n",
      "Training at Epoch 1 iteration 0 with loss 136.163. Total time 0.00055 hours\n",
      "Training at Epoch 1 iteration 100 with loss 0.82522. Total time 0.01333 hours\n",
      "Training at Epoch 1 iteration 200 with loss 0.71202. Total time 0.02583 hours\n",
      "Training at Epoch 1 iteration 300 with loss 0.66802. Total time 0.03805 hours\n",
      "Validation at Epoch 1 , MSE: 0.39430 , Pearson Correlation: 0.64833 with p-value: 0.0 , Concordance Index: 0.74465\n",
      "Training at Epoch 2 iteration 0 with loss 0.48707. Total time 0.04722 hours\n",
      "Training at Epoch 2 iteration 100 with loss 0.54280. Total time 0.06 hours\n",
      "Training at Epoch 2 iteration 200 with loss 0.45782. Total time 0.07222 hours\n",
      "Training at Epoch 2 iteration 300 with loss 0.52118. Total time 0.08472 hours\n",
      "Validation at Epoch 2 , MSE: 0.39613 , Pearson Correlation: 0.67639 with p-value: 0.0 , Concordance Index: 0.76803\n",
      "Training at Epoch 3 iteration 0 with loss 0.46851. Total time 0.09388 hours\n",
      "Training at Epoch 3 iteration 100 with loss 0.48553. Total time 0.10666 hours\n",
      "Training at Epoch 3 iteration 200 with loss 0.38904. Total time 0.11916 hours\n",
      "Training at Epoch 3 iteration 300 with loss 0.53611. Total time 0.13138 hours\n",
      "Validation at Epoch 3 , MSE: 0.46506 , Pearson Correlation: 0.69013 with p-value: 0.0 , Concordance Index: 0.77758\n",
      "Training at Epoch 4 iteration 0 with loss 0.58021. Total time 0.14055 hours\n",
      "Training at Epoch 4 iteration 100 with loss 0.53848. Total time 0.15333 hours\n",
      "Training at Epoch 4 iteration 200 with loss 0.51171. Total time 0.16555 hours\n",
      "Training at Epoch 4 iteration 300 with loss 0.37078. Total time 0.17805 hours\n",
      "Validation at Epoch 4 , MSE: 0.42955 , Pearson Correlation: 0.68920 with p-value: 0.0 , Concordance Index: 0.77835\n",
      "Training at Epoch 5 iteration 0 with loss 0.64326. Total time 0.18722 hours\n",
      "Training at Epoch 5 iteration 100 with loss 0.53399. Total time 0.2 hours\n",
      "Training at Epoch 5 iteration 200 with loss 0.45568. Total time 0.2125 hours\n",
      "Training at Epoch 5 iteration 300 with loss 0.62548. Total time 0.225 hours\n",
      "Validation at Epoch 5 , MSE: 0.35285 , Pearson Correlation: 0.69379 with p-value: 0.0 , Concordance Index: 0.78169\n",
      "Training at Epoch 6 iteration 0 with loss 0.40183. Total time 0.23388 hours\n",
      "Training at Epoch 6 iteration 100 with loss 0.63234. Total time 0.24694 hours\n",
      "Training at Epoch 6 iteration 200 with loss 0.72130. Total time 0.25972 hours\n",
      "Training at Epoch 6 iteration 300 with loss 0.43316. Total time 0.2725 hours\n",
      "Validation at Epoch 6 , MSE: 0.38261 , Pearson Correlation: 0.69417 with p-value: 0.0 , Concordance Index: 0.77726\n",
      "Training at Epoch 7 iteration 0 with loss 0.49465. Total time 0.28138 hours\n",
      "Training at Epoch 7 iteration 100 with loss 0.42688. Total time 0.29472 hours\n",
      "Training at Epoch 7 iteration 200 with loss 0.56444. Total time 0.30722 hours\n",
      "Training at Epoch 7 iteration 300 with loss 0.55905. Total time 0.31944 hours\n",
      "Validation at Epoch 7 , MSE: 0.46461 , Pearson Correlation: 0.69452 with p-value: 0.0 , Concordance Index: 0.77845\n",
      "Training at Epoch 8 iteration 0 with loss 0.68343. Total time 0.32833 hours\n",
      "Training at Epoch 8 iteration 100 with loss 0.47580. Total time 0.34111 hours\n",
      "Training at Epoch 8 iteration 200 with loss 0.52127. Total time 0.35361 hours\n",
      "Training at Epoch 8 iteration 300 with loss 0.54764. Total time 0.36611 hours\n",
      "Validation at Epoch 8 , MSE: 0.41095 , Pearson Correlation: 0.70370 with p-value: 0.0 , Concordance Index: 0.78630\n",
      "Training at Epoch 9 iteration 0 with loss 0.63917. Total time 0.375 hours\n",
      "Training at Epoch 9 iteration 100 with loss 0.56382. Total time 0.3875 hours\n",
      "Training at Epoch 9 iteration 200 with loss 0.60263. Total time 0.40027 hours\n",
      "Training at Epoch 9 iteration 300 with loss 0.45701. Total time 0.41277 hours\n",
      "Validation at Epoch 9 , MSE: 0.37186 , Pearson Correlation: 0.74351 with p-value: 0.0 , Concordance Index: 0.79479\n",
      "Training at Epoch 10 iteration 0 with loss 0.44798. Total time 0.42166 hours\n",
      "Training at Epoch 10 iteration 100 with loss 0.53361. Total time 0.43444 hours\n",
      "Training at Epoch 10 iteration 200 with loss 0.36201. Total time 0.44694 hours\n",
      "Training at Epoch 10 iteration 300 with loss 0.45173. Total time 0.45972 hours\n",
      "Validation at Epoch 10 , MSE: 0.43388 , Pearson Correlation: 0.74784 with p-value: 0.0 , Concordance Index: 0.79715\n",
      "Training at Epoch 11 iteration 0 with loss 0.55483. Total time 0.46861 hours\n",
      "Training at Epoch 11 iteration 100 with loss 0.46214. Total time 0.48138 hours\n",
      "Training at Epoch 11 iteration 200 with loss 0.44338. Total time 0.49388 hours\n",
      "Training at Epoch 11 iteration 300 with loss 0.40392. Total time 0.50666 hours\n",
      "Validation at Epoch 11 , MSE: 0.31879 , Pearson Correlation: 0.75007 with p-value: 0.0 , Concordance Index: 0.79833\n",
      "Training at Epoch 12 iteration 0 with loss 0.37834. Total time 0.51555 hours\n",
      "Training at Epoch 12 iteration 100 with loss 0.79234. Total time 0.52805 hours\n",
      "Training at Epoch 12 iteration 200 with loss 0.47875. Total time 0.54055 hours\n",
      "Training at Epoch 12 iteration 300 with loss 0.47534. Total time 0.55333 hours\n",
      "Validation at Epoch 12 , MSE: 0.28837 , Pearson Correlation: 0.75797 with p-value: 0.0 , Concordance Index: 0.79944\n",
      "Training at Epoch 13 iteration 0 with loss 0.37551. Total time 0.56222 hours\n",
      "Training at Epoch 13 iteration 100 with loss 0.48324. Total time 0.57527 hours\n",
      "Training at Epoch 13 iteration 200 with loss 0.37519. Total time 0.58805 hours\n",
      "Training at Epoch 13 iteration 300 with loss 0.61232. Total time 0.60055 hours\n",
      "Validation at Epoch 13 , MSE: 0.29732 , Pearson Correlation: 0.75750 with p-value: 0.0 , Concordance Index: 0.80684\n",
      "Training at Epoch 14 iteration 0 with loss 0.48235. Total time 0.60972 hours\n",
      "Training at Epoch 14 iteration 100 with loss 0.44414. Total time 0.62277 hours\n",
      "Training at Epoch 14 iteration 200 with loss 0.42053. Total time 0.63555 hours\n",
      "Training at Epoch 14 iteration 300 with loss 0.32184. Total time 0.64805 hours\n",
      "Validation at Epoch 14 , MSE: 0.35968 , Pearson Correlation: 0.76019 with p-value: 0.0 , Concordance Index: 0.80519\n",
      "Training at Epoch 15 iteration 0 with loss 0.60828. Total time 0.65722 hours\n",
      "Training at Epoch 15 iteration 100 with loss 0.32615. Total time 0.67 hours\n",
      "Training at Epoch 15 iteration 200 with loss 0.34432. Total time 0.68277 hours\n",
      "Training at Epoch 15 iteration 300 with loss 0.45418. Total time 0.69555 hours\n",
      "Validation at Epoch 15 , MSE: 0.70970 , Pearson Correlation: 0.76514 with p-value: 0.0 , Concordance Index: 0.80532\n",
      "Training at Epoch 16 iteration 0 with loss 0.69658. Total time 0.70472 hours\n",
      "Training at Epoch 16 iteration 100 with loss 0.41408. Total time 0.7175 hours\n",
      "Training at Epoch 16 iteration 200 with loss 0.36031. Total time 0.73027 hours\n",
      "Training at Epoch 16 iteration 300 with loss 0.49896. Total time 0.74277 hours\n",
      "Validation at Epoch 16 , MSE: 0.28298 , Pearson Correlation: 0.76756 with p-value: 0.0 , Concordance Index: 0.81225\n",
      "Training at Epoch 17 iteration 0 with loss 0.35133. Total time 0.75194 hours\n",
      "Training at Epoch 17 iteration 100 with loss 0.52689. Total time 0.76444 hours\n",
      "Training at Epoch 17 iteration 200 with loss 0.38481. Total time 0.77694 hours\n",
      "Training at Epoch 17 iteration 300 with loss 0.43199. Total time 0.78944 hours\n",
      "Validation at Epoch 17 , MSE: 0.30693 , Pearson Correlation: 0.75867 with p-value: 0.0 , Concordance Index: 0.80294\n",
      "Training at Epoch 18 iteration 0 with loss 0.43359. Total time 0.79861 hours\n",
      "Training at Epoch 18 iteration 100 with loss 0.34464. Total time 0.81138 hours\n",
      "Training at Epoch 18 iteration 200 with loss 0.30075. Total time 0.82361 hours\n",
      "Training at Epoch 18 iteration 300 with loss 0.41645. Total time 0.83611 hours\n",
      "Validation at Epoch 18 , MSE: 0.28203 , Pearson Correlation: 0.77445 with p-value: 0.0 , Concordance Index: 0.81310\n",
      "Training at Epoch 19 iteration 0 with loss 0.40471. Total time 0.845 hours\n",
      "Training at Epoch 19 iteration 100 with loss 0.47508. Total time 0.85777 hours\n",
      "Training at Epoch 19 iteration 200 with loss 0.38814. Total time 0.87027 hours\n",
      "Training at Epoch 19 iteration 300 with loss 0.36344. Total time 0.88277 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Validation at Epoch 19 , MSE: 0.28993 , Pearson Correlation: 0.77004 with p-value: 0.0 , Concordance Index: 0.80754\n",
      "Training at Epoch 20 iteration 0 with loss 0.36839. Total time 0.89166 hours\n",
      "Training at Epoch 20 iteration 100 with loss 0.32366. Total time 0.90416 hours\n",
      "Training at Epoch 20 iteration 200 with loss 0.32988. Total time 0.91666 hours\n",
      "Training at Epoch 20 iteration 300 with loss 0.40000. Total time 0.92916 hours\n",
      "Validation at Epoch 20 , MSE: 0.26701 , Pearson Correlation: 0.78321 with p-value: 0.0 , Concordance Index: 0.81346\n",
      "Training at Epoch 21 iteration 0 with loss 0.30981. Total time 0.93805 hours\n",
      "Training at Epoch 21 iteration 100 with loss 0.42037. Total time 0.95083 hours\n",
      "Training at Epoch 21 iteration 200 with loss 0.40824. Total time 0.96305 hours\n",
      "Training at Epoch 21 iteration 300 with loss 0.43315. Total time 0.97555 hours\n",
      "Validation at Epoch 21 , MSE: 0.25826 , Pearson Correlation: 0.78832 with p-value: 0.0 , Concordance Index: 0.82058\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 20 Testing MSE: 0.37272119830374767 , Pearson Correlation: 0.7075327325154027 with p-value: 0.0 , Concordance Index: 0.7499421790133958\n",
      "Training at Epoch 22 iteration 0 with loss 0.34303. Total time 0.99527 hours\n",
      "Training at Epoch 22 iteration 100 with loss 0.27354. Total time 1.00805 hours\n",
      "Training at Epoch 22 iteration 200 with loss 0.37617. Total time 1.02083 hours\n",
      "Training at Epoch 22 iteration 300 with loss 0.34289. Total time 1.03305 hours\n",
      "Validation at Epoch 22 , MSE: 0.25894 , Pearson Correlation: 0.78612 with p-value: 0.0 , Concordance Index: 0.81859\n",
      "Training at Epoch 23 iteration 0 with loss 0.24405. Total time 1.04222 hours\n",
      "Training at Epoch 23 iteration 100 with loss 0.49700. Total time 1.05472 hours\n",
      "Training at Epoch 23 iteration 200 with loss 0.28622. Total time 1.0675 hours\n",
      "Training at Epoch 23 iteration 300 with loss 0.34547. Total time 1.08 hours\n",
      "Validation at Epoch 23 , MSE: 0.26884 , Pearson Correlation: 0.78662 with p-value: 0.0 , Concordance Index: 0.82094\n",
      "Training at Epoch 24 iteration 0 with loss 0.32570. Total time 1.08916 hours\n",
      "Training at Epoch 24 iteration 100 with loss 0.36636. Total time 1.10194 hours\n",
      "Training at Epoch 24 iteration 200 with loss 0.33575. Total time 1.11444 hours\n",
      "Training at Epoch 24 iteration 300 with loss 0.31230. Total time 1.12694 hours\n",
      "Validation at Epoch 24 , MSE: 0.24734 , Pearson Correlation: 0.79903 with p-value: 0.0 , Concordance Index: 0.82236\n",
      "Training at Epoch 25 iteration 0 with loss 0.35286. Total time 1.13583 hours\n",
      "Training at Epoch 25 iteration 100 with loss 0.39956. Total time 1.14861 hours\n",
      "Training at Epoch 25 iteration 200 with loss 0.28705. Total time 1.16111 hours\n",
      "Training at Epoch 25 iteration 300 with loss 0.34478. Total time 1.17361 hours\n",
      "Validation at Epoch 25 , MSE: 0.28580 , Pearson Correlation: 0.80144 with p-value: 0.0 , Concordance Index: 0.82615\n",
      "Training at Epoch 26 iteration 0 with loss 0.35995. Total time 1.1825 hours\n",
      "Training at Epoch 26 iteration 100 with loss 0.42703. Total time 1.19527 hours\n",
      "Training at Epoch 26 iteration 200 with loss 0.32226. Total time 1.2075 hours\n",
      "Training at Epoch 26 iteration 300 with loss 0.29173. Total time 1.21972 hours\n",
      "Validation at Epoch 26 , MSE: 0.24720 , Pearson Correlation: 0.79927 with p-value: 0.0 , Concordance Index: 0.81728\n",
      "Training at Epoch 27 iteration 0 with loss 0.33247. Total time 1.22888 hours\n",
      "Training at Epoch 27 iteration 100 with loss 0.50012. Total time 1.24166 hours\n",
      "Training at Epoch 27 iteration 200 with loss 0.33290. Total time 1.25416 hours\n",
      "Training at Epoch 27 iteration 300 with loss 0.40641. Total time 1.26638 hours\n",
      "Validation at Epoch 27 , MSE: 0.24869 , Pearson Correlation: 0.81370 with p-value: 0.0 , Concordance Index: 0.83190\n",
      "Training at Epoch 28 iteration 0 with loss 0.35423. Total time 1.27527 hours\n",
      "Training at Epoch 28 iteration 100 with loss 0.28916. Total time 1.28833 hours\n",
      "Training at Epoch 28 iteration 200 with loss 0.27262. Total time 1.30083 hours\n",
      "Training at Epoch 28 iteration 300 with loss 0.25417. Total time 1.31305 hours\n",
      "Validation at Epoch 28 , MSE: 0.24996 , Pearson Correlation: 0.81409 with p-value: 0.0 , Concordance Index: 0.83008\n",
      "Training at Epoch 29 iteration 0 with loss 0.31986. Total time 1.32194 hours\n",
      "Training at Epoch 29 iteration 100 with loss 0.29878. Total time 1.335 hours\n",
      "Training at Epoch 29 iteration 200 with loss 0.33602. Total time 1.34722 hours\n",
      "Training at Epoch 29 iteration 300 with loss 0.42658. Total time 1.35972 hours\n",
      "Validation at Epoch 29 , MSE: 0.23263 , Pearson Correlation: 0.81265 with p-value: 0.0 , Concordance Index: 0.83135\n",
      "Training at Epoch 30 iteration 0 with loss 0.32088. Total time 1.36861 hours\n",
      "Training at Epoch 30 iteration 100 with loss 0.25848. Total time 1.38111 hours\n",
      "Training at Epoch 30 iteration 200 with loss 0.35180. Total time 1.39361 hours\n",
      "Training at Epoch 30 iteration 300 with loss 0.25339. Total time 1.40611 hours\n",
      "Validation at Epoch 30 , MSE: 0.22196 , Pearson Correlation: 0.82180 with p-value: 0.0 , Concordance Index: 0.83520\n",
      "Training at Epoch 31 iteration 0 with loss 0.24122. Total time 1.415 hours\n",
      "Training at Epoch 31 iteration 100 with loss 0.22840. Total time 1.42777 hours\n",
      "Training at Epoch 31 iteration 200 with loss 0.24142. Total time 1.44027 hours\n",
      "Training at Epoch 31 iteration 300 with loss 0.24614. Total time 1.4525 hours\n",
      "Validation at Epoch 31 , MSE: 0.22617 , Pearson Correlation: 0.81733 with p-value: 0.0 , Concordance Index: 0.83971\n",
      "Training at Epoch 32 iteration 0 with loss 0.31324. Total time 1.46138 hours\n",
      "Training at Epoch 32 iteration 100 with loss 0.27876. Total time 1.47444 hours\n",
      "Training at Epoch 32 iteration 200 with loss 0.23093. Total time 1.48666 hours\n",
      "Training at Epoch 32 iteration 300 with loss 0.24458. Total time 1.49916 hours\n",
      "Validation at Epoch 32 , MSE: 0.21518 , Pearson Correlation: 0.82743 with p-value: 0.0 , Concordance Index: 0.84098\n",
      "Training at Epoch 33 iteration 0 with loss 0.26011. Total time 1.50805 hours\n",
      "Training at Epoch 33 iteration 100 with loss 0.35771. Total time 1.52083 hours\n",
      "Training at Epoch 33 iteration 200 with loss 0.37114. Total time 1.53305 hours\n",
      "Training at Epoch 33 iteration 300 with loss 0.29278. Total time 1.54555 hours\n",
      "Validation at Epoch 33 , MSE: 0.23743 , Pearson Correlation: 0.82462 with p-value: 0.0 , Concordance Index: 0.84330\n",
      "Training at Epoch 34 iteration 0 with loss 0.27307. Total time 1.55444 hours\n",
      "Training at Epoch 34 iteration 100 with loss 0.25569. Total time 1.56722 hours\n",
      "Training at Epoch 34 iteration 200 with loss 0.27517. Total time 1.57944 hours\n",
      "Training at Epoch 34 iteration 300 with loss 0.24825. Total time 1.59166 hours\n",
      "Validation at Epoch 34 , MSE: 0.21501 , Pearson Correlation: 0.83131 with p-value: 0.0 , Concordance Index: 0.84516\n",
      "Training at Epoch 35 iteration 0 with loss 0.20019. Total time 1.60083 hours\n",
      "Training at Epoch 35 iteration 100 with loss 0.29214. Total time 1.61333 hours\n",
      "Training at Epoch 35 iteration 200 with loss 0.22646. Total time 1.62583 hours\n",
      "Training at Epoch 35 iteration 300 with loss 0.33989. Total time 1.63833 hours\n",
      "Validation at Epoch 35 , MSE: 0.21752 , Pearson Correlation: 0.82715 with p-value: 0.0 , Concordance Index: 0.84244\n",
      "Training at Epoch 36 iteration 0 with loss 0.33062. Total time 1.64722 hours\n",
      "Training at Epoch 36 iteration 100 with loss 0.21912. Total time 1.66 hours\n",
      "Training at Epoch 36 iteration 200 with loss 0.25600. Total time 1.6725 hours\n",
      "Training at Epoch 36 iteration 300 with loss 0.28540. Total time 1.68472 hours\n",
      "Validation at Epoch 36 , MSE: 0.22636 , Pearson Correlation: 0.82808 with p-value: 0.0 , Concordance Index: 0.84285\n",
      "Training at Epoch 37 iteration 0 with loss 0.20971. Total time 1.69388 hours\n",
      "Training at Epoch 37 iteration 100 with loss 0.26697. Total time 1.70666 hours\n",
      "Training at Epoch 37 iteration 200 with loss 0.28773. Total time 1.71916 hours\n",
      "Training at Epoch 37 iteration 300 with loss 0.26294. Total time 1.73138 hours\n",
      "Validation at Epoch 37 , MSE: 0.21542 , Pearson Correlation: 0.83712 with p-value: 0.0 , Concordance Index: 0.84834\n",
      "Training at Epoch 38 iteration 0 with loss 0.22682. Total time 1.74027 hours\n",
      "Training at Epoch 38 iteration 100 with loss 0.37128. Total time 1.75277 hours\n",
      "Training at Epoch 38 iteration 200 with loss 0.21665. Total time 1.76527 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 38 iteration 300 with loss 0.27112. Total time 1.77777 hours\n",
      "Validation at Epoch 38 , MSE: 0.22026 , Pearson Correlation: 0.83681 with p-value: 0.0 , Concordance Index: 0.84623\n",
      "Training at Epoch 39 iteration 0 with loss 0.23013. Total time 1.78666 hours\n",
      "Training at Epoch 39 iteration 100 with loss 0.24423. Total time 1.79944 hours\n",
      "Training at Epoch 39 iteration 200 with loss 0.27524. Total time 1.81194 hours\n",
      "Training at Epoch 39 iteration 300 with loss 0.33160. Total time 1.82444 hours\n",
      "Validation at Epoch 39 , MSE: 0.22192 , Pearson Correlation: 0.83606 with p-value: 0.0 , Concordance Index: 0.84684\n",
      "Training at Epoch 40 iteration 0 with loss 0.23471. Total time 1.83333 hours\n",
      "Training at Epoch 40 iteration 100 with loss 0.26917. Total time 1.84611 hours\n",
      "Training at Epoch 40 iteration 200 with loss 0.22151. Total time 1.85861 hours\n",
      "Training at Epoch 40 iteration 300 with loss 0.23057. Total time 1.87083 hours\n",
      "Validation at Epoch 40 , MSE: 0.20242 , Pearson Correlation: 0.84229 with p-value: 0.0 , Concordance Index: 0.85093\n",
      "Training at Epoch 41 iteration 0 with loss 0.27837. Total time 1.87972 hours\n",
      "Training at Epoch 41 iteration 100 with loss 0.23112. Total time 1.89277 hours\n",
      "Training at Epoch 41 iteration 200 with loss 0.21247. Total time 1.905 hours\n",
      "Training at Epoch 41 iteration 300 with loss 0.24832. Total time 1.9175 hours\n",
      "Validation at Epoch 41 , MSE: 0.20688 , Pearson Correlation: 0.84202 with p-value: 0.0 , Concordance Index: 0.85229\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 40 Testing MSE: 0.29569221573970883 , Pearson Correlation: 0.7832441407913229 with p-value: 0.0 , Concordance Index: 0.7910472435735167\n",
      "Training at Epoch 42 iteration 0 with loss 0.19224. Total time 1.9375 hours\n",
      "Training at Epoch 42 iteration 100 with loss 0.17492. Total time 1.95027 hours\n",
      "Training at Epoch 42 iteration 200 with loss 0.18974. Total time 1.9625 hours\n",
      "Training at Epoch 42 iteration 300 with loss 0.22636. Total time 1.97472 hours\n",
      "Validation at Epoch 42 , MSE: 0.19635 , Pearson Correlation: 0.84302 with p-value: 0.0 , Concordance Index: 0.85265\n",
      "Training at Epoch 43 iteration 0 with loss 0.23246. Total time 1.98361 hours\n",
      "Training at Epoch 43 iteration 100 with loss 0.22816. Total time 1.99638 hours\n",
      "Training at Epoch 43 iteration 200 with loss 0.21545. Total time 2.00861 hours\n",
      "Training at Epoch 43 iteration 300 with loss 0.29063. Total time 2.02111 hours\n",
      "Validation at Epoch 43 , MSE: 0.20116 , Pearson Correlation: 0.84400 with p-value: 0.0 , Concordance Index: 0.85338\n",
      "Training at Epoch 44 iteration 0 with loss 0.25202. Total time 2.03027 hours\n",
      "Training at Epoch 44 iteration 100 with loss 0.19570. Total time 2.04305 hours\n",
      "Training at Epoch 44 iteration 200 with loss 0.31706. Total time 2.05555 hours\n",
      "Training at Epoch 44 iteration 300 with loss 0.25896. Total time 2.06777 hours\n",
      "Validation at Epoch 44 , MSE: 0.19943 , Pearson Correlation: 0.84094 with p-value: 0.0 , Concordance Index: 0.84747\n",
      "Training at Epoch 45 iteration 0 with loss 0.26532. Total time 2.07694 hours\n",
      "Training at Epoch 45 iteration 100 with loss 0.23170. Total time 2.09 hours\n",
      "Training at Epoch 45 iteration 200 with loss 0.23356. Total time 2.1025 hours\n",
      "Training at Epoch 45 iteration 300 with loss 0.27453. Total time 2.115 hours\n",
      "Validation at Epoch 45 , MSE: 0.19277 , Pearson Correlation: 0.84938 with p-value: 0.0 , Concordance Index: 0.85808\n",
      "Training at Epoch 46 iteration 0 with loss 0.20947. Total time 2.12444 hours\n",
      "Training at Epoch 46 iteration 100 with loss 0.23815. Total time 2.13722 hours\n",
      "Training at Epoch 46 iteration 200 with loss 0.25878. Total time 2.14972 hours\n",
      "Training at Epoch 46 iteration 300 with loss 0.24287. Total time 2.1625 hours\n",
      "Validation at Epoch 46 , MSE: 0.20436 , Pearson Correlation: 0.84547 with p-value: 0.0 , Concordance Index: 0.85595\n",
      "Training at Epoch 47 iteration 0 with loss 0.24022. Total time 2.17138 hours\n",
      "Training at Epoch 47 iteration 100 with loss 0.21058. Total time 2.18416 hours\n",
      "Training at Epoch 47 iteration 200 with loss 0.20844. Total time 2.19666 hours\n",
      "Training at Epoch 47 iteration 300 with loss 0.26635. Total time 2.20888 hours\n",
      "Validation at Epoch 47 , MSE: 0.19170 , Pearson Correlation: 0.84713 with p-value: 0.0 , Concordance Index: 0.85259\n",
      "Training at Epoch 48 iteration 0 with loss 0.17450. Total time 2.21777 hours\n",
      "Training at Epoch 48 iteration 100 with loss 0.24142. Total time 2.23111 hours\n",
      "Training at Epoch 48 iteration 200 with loss 0.22058. Total time 2.24361 hours\n",
      "Training at Epoch 48 iteration 300 with loss 0.28080. Total time 2.25583 hours\n",
      "Validation at Epoch 48 , MSE: 0.18448 , Pearson Correlation: 0.85344 with p-value: 0.0 , Concordance Index: 0.85905\n",
      "Training at Epoch 49 iteration 0 with loss 0.17047. Total time 2.26472 hours\n",
      "Training at Epoch 49 iteration 100 with loss 0.20772. Total time 2.27722 hours\n",
      "Training at Epoch 49 iteration 200 with loss 0.16542. Total time 2.28944 hours\n",
      "Training at Epoch 49 iteration 300 with loss 0.25960. Total time 2.30166 hours\n",
      "Validation at Epoch 49 , MSE: 0.19203 , Pearson Correlation: 0.85179 with p-value: 0.0 , Concordance Index: 0.85699\n",
      "Training at Epoch 50 iteration 0 with loss 0.15140. Total time 2.31083 hours\n",
      "Training at Epoch 50 iteration 100 with loss 0.24671. Total time 2.32333 hours\n",
      "Training at Epoch 50 iteration 200 with loss 0.18708. Total time 2.33555 hours\n",
      "Training at Epoch 50 iteration 300 with loss 0.19260. Total time 2.34777 hours\n",
      "Validation at Epoch 50 , MSE: 0.18888 , Pearson Correlation: 0.85593 with p-value: 0.0 , Concordance Index: 0.85854\n",
      "Training at Epoch 51 iteration 0 with loss 0.19447. Total time 2.35694 hours\n",
      "Training at Epoch 51 iteration 100 with loss 0.17128. Total time 2.36972 hours\n",
      "Training at Epoch 51 iteration 200 with loss 0.22921. Total time 2.38194 hours\n",
      "Training at Epoch 51 iteration 300 with loss 0.29868. Total time 2.39416 hours\n",
      "Validation at Epoch 51 , MSE: 0.20700 , Pearson Correlation: 0.85225 with p-value: 0.0 , Concordance Index: 0.85914\n",
      "Training at Epoch 52 iteration 0 with loss 0.16618. Total time 2.40333 hours\n",
      "Training at Epoch 52 iteration 100 with loss 0.23820. Total time 2.41694 hours\n",
      "Training at Epoch 52 iteration 200 with loss 0.25424. Total time 2.42972 hours\n",
      "Training at Epoch 52 iteration 300 with loss 0.20174. Total time 2.44194 hours\n",
      "Validation at Epoch 52 , MSE: 0.19523 , Pearson Correlation: 0.85324 with p-value: 0.0 , Concordance Index: 0.86036\n",
      "Training at Epoch 53 iteration 0 with loss 0.16206. Total time 2.45083 hours\n",
      "Training at Epoch 53 iteration 100 with loss 0.21449. Total time 2.46361 hours\n",
      "Training at Epoch 53 iteration 200 with loss 0.16866. Total time 2.47583 hours\n",
      "Training at Epoch 53 iteration 300 with loss 0.24561. Total time 2.48805 hours\n",
      "Validation at Epoch 53 , MSE: 0.21438 , Pearson Correlation: 0.85139 with p-value: 0.0 , Concordance Index: 0.85690\n",
      "Training at Epoch 54 iteration 0 with loss 0.21684. Total time 2.49722 hours\n",
      "Training at Epoch 54 iteration 100 with loss 0.14723. Total time 2.51027 hours\n",
      "Training at Epoch 54 iteration 200 with loss 0.35110. Total time 2.5225 hours\n",
      "Training at Epoch 54 iteration 300 with loss 0.26607. Total time 2.535 hours\n",
      "Validation at Epoch 54 , MSE: 0.18140 , Pearson Correlation: 0.85742 with p-value: 0.0 , Concordance Index: 0.86153\n",
      "Training at Epoch 55 iteration 0 with loss 0.20037. Total time 2.54388 hours\n",
      "Training at Epoch 55 iteration 100 with loss 0.16691. Total time 2.55666 hours\n",
      "Training at Epoch 55 iteration 200 with loss 0.24291. Total time 2.56888 hours\n",
      "Training at Epoch 55 iteration 300 with loss 0.16680. Total time 2.58111 hours\n",
      "Validation at Epoch 55 , MSE: 0.20235 , Pearson Correlation: 0.85722 with p-value: 0.0 , Concordance Index: 0.86278\n",
      "Training at Epoch 56 iteration 0 with loss 0.23092. Total time 2.59 hours\n",
      "Training at Epoch 56 iteration 100 with loss 0.23170. Total time 2.60277 hours\n",
      "Training at Epoch 56 iteration 200 with loss 0.23085. Total time 2.615 hours\n",
      "Training at Epoch 56 iteration 300 with loss 0.17183. Total time 2.62722 hours\n",
      "Validation at Epoch 56 , MSE: 0.18633 , Pearson Correlation: 0.85890 with p-value: 0.0 , Concordance Index: 0.86075\n",
      "Training at Epoch 57 iteration 0 with loss 0.18893. Total time 2.63638 hours\n",
      "Training at Epoch 57 iteration 100 with loss 0.14953. Total time 2.64888 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 57 iteration 200 with loss 0.18545. Total time 2.66138 hours\n",
      "Training at Epoch 57 iteration 300 with loss 0.21581. Total time 2.67388 hours\n",
      "Validation at Epoch 57 , MSE: 0.19196 , Pearson Correlation: 0.86100 with p-value: 0.0 , Concordance Index: 0.86286\n",
      "Training at Epoch 58 iteration 0 with loss 0.16123. Total time 2.68361 hours\n",
      "Training at Epoch 58 iteration 100 with loss 0.19433. Total time 2.69805 hours\n",
      "Training at Epoch 58 iteration 200 with loss 0.17505. Total time 2.71222 hours\n",
      "Training at Epoch 58 iteration 300 with loss 0.17340. Total time 2.72611 hours\n",
      "Validation at Epoch 58 , MSE: 0.19627 , Pearson Correlation: 0.86190 with p-value: 0.0 , Concordance Index: 0.86324\n",
      "Training at Epoch 59 iteration 0 with loss 0.18209. Total time 2.73694 hours\n",
      "Training at Epoch 59 iteration 100 with loss 0.20220. Total time 2.75138 hours\n",
      "Training at Epoch 59 iteration 200 with loss 0.13396. Total time 2.76583 hours\n",
      "Training at Epoch 59 iteration 300 with loss 0.16555. Total time 2.77916 hours\n",
      "Validation at Epoch 59 , MSE: 0.19875 , Pearson Correlation: 0.86115 with p-value: 0.0 , Concordance Index: 0.86431\n",
      "Training at Epoch 60 iteration 0 with loss 0.23968. Total time 2.78833 hours\n",
      "Training at Epoch 60 iteration 100 with loss 0.19059. Total time 2.80083 hours\n",
      "Training at Epoch 60 iteration 200 with loss 0.15193. Total time 2.81305 hours\n",
      "Training at Epoch 60 iteration 300 with loss 0.18692. Total time 2.82527 hours\n",
      "Validation at Epoch 60 , MSE: 0.17722 , Pearson Correlation: 0.85995 with p-value: 0.0 , Concordance Index: 0.86391\n",
      "Training at Epoch 61 iteration 0 with loss 0.12893. Total time 2.83416 hours\n",
      "Training at Epoch 61 iteration 100 with loss 0.20670. Total time 2.84694 hours\n",
      "Training at Epoch 61 iteration 200 with loss 0.18769. Total time 2.85916 hours\n",
      "Training at Epoch 61 iteration 300 with loss 0.22297. Total time 2.87138 hours\n",
      "Validation at Epoch 61 , MSE: 0.17296 , Pearson Correlation: 0.86376 with p-value: 0.0 , Concordance Index: 0.86369\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 60 Testing MSE: 0.24335339276757856 , Pearson Correlation: 0.8135504194514243 with p-value: 0.0 , Concordance Index: 0.8035738570220233\n",
      "Training at Epoch 62 iteration 0 with loss 0.18941. Total time 2.89138 hours\n",
      "Training at Epoch 62 iteration 100 with loss 0.18360. Total time 2.90388 hours\n",
      "Training at Epoch 62 iteration 200 with loss 0.18115. Total time 2.91611 hours\n",
      "Training at Epoch 62 iteration 300 with loss 0.17191. Total time 2.92833 hours\n",
      "Validation at Epoch 62 , MSE: 0.19798 , Pearson Correlation: 0.85707 with p-value: 0.0 , Concordance Index: 0.86208\n",
      "Training at Epoch 63 iteration 0 with loss 0.19867. Total time 2.93722 hours\n",
      "Training at Epoch 63 iteration 100 with loss 0.17411. Total time 2.94972 hours\n",
      "Training at Epoch 63 iteration 200 with loss 0.14452. Total time 2.96222 hours\n",
      "Training at Epoch 63 iteration 300 with loss 0.21537. Total time 2.97472 hours\n",
      "Validation at Epoch 63 , MSE: 0.19048 , Pearson Correlation: 0.86335 with p-value: 0.0 , Concordance Index: 0.86701\n",
      "Training at Epoch 64 iteration 0 with loss 0.18582. Total time 2.98361 hours\n",
      "Training at Epoch 64 iteration 100 with loss 0.14736. Total time 2.99638 hours\n",
      "Training at Epoch 64 iteration 200 with loss 0.13275. Total time 3.00861 hours\n",
      "Training at Epoch 64 iteration 300 with loss 0.12869. Total time 3.02083 hours\n",
      "Validation at Epoch 64 , MSE: 0.17248 , Pearson Correlation: 0.86617 with p-value: 0.0 , Concordance Index: 0.86950\n",
      "Training at Epoch 65 iteration 0 with loss 0.16566. Total time 3.02972 hours\n",
      "Training at Epoch 65 iteration 100 with loss 0.16405. Total time 3.0425 hours\n",
      "Training at Epoch 65 iteration 200 with loss 0.17519. Total time 3.05472 hours\n",
      "Training at Epoch 65 iteration 300 with loss 0.16920. Total time 3.06722 hours\n",
      "Validation at Epoch 65 , MSE: 0.17343 , Pearson Correlation: 0.86414 with p-value: 0.0 , Concordance Index: 0.86666\n",
      "Training at Epoch 66 iteration 0 with loss 0.15666. Total time 3.07611 hours\n",
      "Training at Epoch 66 iteration 100 with loss 0.18036. Total time 3.09 hours\n",
      "Training at Epoch 66 iteration 200 with loss 0.13953. Total time 3.10444 hours\n",
      "Training at Epoch 66 iteration 300 with loss 0.15657. Total time 3.11861 hours\n",
      "Validation at Epoch 66 , MSE: 0.17111 , Pearson Correlation: 0.86675 with p-value: 0.0 , Concordance Index: 0.86842\n",
      "Training at Epoch 67 iteration 0 with loss 0.13336. Total time 3.12944 hours\n",
      "Training at Epoch 67 iteration 100 with loss 0.17928. Total time 3.14388 hours\n",
      "Training at Epoch 67 iteration 200 with loss 0.14214. Total time 3.15777 hours\n",
      "Training at Epoch 67 iteration 300 with loss 0.18373. Total time 3.17194 hours\n",
      "Validation at Epoch 67 , MSE: 0.16828 , Pearson Correlation: 0.86689 with p-value: 0.0 , Concordance Index: 0.86899\n",
      "Training at Epoch 68 iteration 0 with loss 0.14341. Total time 3.18305 hours\n",
      "Training at Epoch 68 iteration 100 with loss 0.13078. Total time 3.20111 hours\n",
      "Training at Epoch 68 iteration 200 with loss 0.15940. Total time 3.21805 hours\n",
      "Training at Epoch 68 iteration 300 with loss 0.23818. Total time 3.23444 hours\n",
      "Validation at Epoch 68 , MSE: 0.17255 , Pearson Correlation: 0.86429 with p-value: 0.0 , Concordance Index: 0.86773\n",
      "Training at Epoch 69 iteration 0 with loss 0.14003. Total time 3.24805 hours\n",
      "Training at Epoch 69 iteration 100 with loss 0.16348. Total time 3.26444 hours\n",
      "Training at Epoch 69 iteration 200 with loss 0.14878. Total time 3.28027 hours\n",
      "Training at Epoch 69 iteration 300 with loss 0.17066. Total time 3.29666 hours\n",
      "Validation at Epoch 69 , MSE: 0.18121 , Pearson Correlation: 0.85871 with p-value: 0.0 , Concordance Index: 0.86461\n",
      "Training at Epoch 70 iteration 0 with loss 0.15516. Total time 3.31 hours\n",
      "Training at Epoch 70 iteration 100 with loss 0.15942. Total time 3.32666 hours\n",
      "Training at Epoch 70 iteration 200 with loss 0.10479. Total time 3.34277 hours\n",
      "Training at Epoch 70 iteration 300 with loss 0.16191. Total time 3.35888 hours\n",
      "Validation at Epoch 70 , MSE: 0.17744 , Pearson Correlation: 0.86226 with p-value: 0.0 , Concordance Index: 0.86683\n",
      "Training at Epoch 71 iteration 0 with loss 0.16986. Total time 3.3725 hours\n",
      "Training at Epoch 71 iteration 100 with loss 0.15416. Total time 3.38916 hours\n",
      "Training at Epoch 71 iteration 200 with loss 0.17794. Total time 3.40527 hours\n",
      "Training at Epoch 71 iteration 300 with loss 0.17232. Total time 3.42166 hours\n",
      "Validation at Epoch 71 , MSE: 0.18138 , Pearson Correlation: 0.86294 with p-value: 0.0 , Concordance Index: 0.86901\n",
      "Training at Epoch 72 iteration 0 with loss 0.16867. Total time 3.43527 hours\n",
      "Training at Epoch 72 iteration 100 with loss 0.13624. Total time 3.45194 hours\n",
      "Training at Epoch 72 iteration 200 with loss 0.18695. Total time 3.46805 hours\n",
      "Training at Epoch 72 iteration 300 with loss 0.13106. Total time 3.48416 hours\n",
      "Validation at Epoch 72 , MSE: 0.17886 , Pearson Correlation: 0.86242 with p-value: 0.0 , Concordance Index: 0.86481\n",
      "Training at Epoch 73 iteration 0 with loss 0.14884. Total time 3.49777 hours\n",
      "Training at Epoch 73 iteration 100 with loss 0.17768. Total time 3.51444 hours\n",
      "Training at Epoch 73 iteration 200 with loss 0.13017. Total time 3.53055 hours\n",
      "Training at Epoch 73 iteration 300 with loss 0.16950. Total time 3.54722 hours\n",
      "Validation at Epoch 73 , MSE: 0.18290 , Pearson Correlation: 0.86462 with p-value: 0.0 , Concordance Index: 0.86950\n",
      "Training at Epoch 74 iteration 0 with loss 0.15744. Total time 3.56083 hours\n",
      "Training at Epoch 74 iteration 100 with loss 0.15433. Total time 3.57722 hours\n",
      "Training at Epoch 74 iteration 200 with loss 0.16487. Total time 3.59333 hours\n",
      "Training at Epoch 74 iteration 300 with loss 0.15534. Total time 3.60972 hours\n",
      "Validation at Epoch 74 , MSE: 0.17051 , Pearson Correlation: 0.86587 with p-value: 0.0 , Concordance Index: 0.87212\n",
      "Training at Epoch 75 iteration 0 with loss 0.10263. Total time 3.62305 hours\n",
      "Training at Epoch 75 iteration 100 with loss 0.14849. Total time 3.63972 hours\n",
      "Training at Epoch 75 iteration 200 with loss 0.12161. Total time 3.65611 hours\n",
      "Training at Epoch 75 iteration 300 with loss 0.14146. Total time 3.67194 hours\n",
      "Validation at Epoch 75 , MSE: 0.16745 , Pearson Correlation: 0.86760 with p-value: 0.0 , Concordance Index: 0.87252\n",
      "Training at Epoch 76 iteration 0 with loss 0.16466. Total time 3.68527 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 76 iteration 100 with loss 0.16569. Total time 3.70194 hours\n",
      "Training at Epoch 76 iteration 200 with loss 0.14818. Total time 3.71805 hours\n",
      "Training at Epoch 76 iteration 300 with loss 0.15176. Total time 3.73416 hours\n",
      "Validation at Epoch 76 , MSE: 0.21226 , Pearson Correlation: 0.86388 with p-value: 0.0 , Concordance Index: 0.87119\n",
      "Training at Epoch 77 iteration 0 with loss 0.16914. Total time 3.74777 hours\n",
      "Training at Epoch 77 iteration 100 with loss 0.12204. Total time 3.76416 hours\n",
      "Training at Epoch 77 iteration 200 with loss 0.12215. Total time 3.78027 hours\n",
      "Training at Epoch 77 iteration 300 with loss 0.12273. Total time 3.79638 hours\n",
      "Validation at Epoch 77 , MSE: 0.17012 , Pearson Correlation: 0.86631 with p-value: 0.0 , Concordance Index: 0.87188\n",
      "Training at Epoch 78 iteration 0 with loss 0.20823. Total time 3.80861 hours\n",
      "Training at Epoch 78 iteration 100 with loss 0.12445. Total time 3.82138 hours\n",
      "Training at Epoch 78 iteration 200 with loss 0.12076. Total time 3.83388 hours\n",
      "Training at Epoch 78 iteration 300 with loss 0.15150. Total time 3.84611 hours\n",
      "Validation at Epoch 78 , MSE: 0.16835 , Pearson Correlation: 0.86768 with p-value: 0.0 , Concordance Index: 0.87046\n",
      "Training at Epoch 79 iteration 0 with loss 0.12666. Total time 3.855 hours\n",
      "Training at Epoch 79 iteration 100 with loss 0.13107. Total time 3.86777 hours\n",
      "Training at Epoch 79 iteration 200 with loss 0.12565. Total time 3.88 hours\n",
      "Training at Epoch 79 iteration 300 with loss 0.14378. Total time 3.89222 hours\n",
      "Validation at Epoch 79 , MSE: 0.17507 , Pearson Correlation: 0.86641 with p-value: 0.0 , Concordance Index: 0.87197\n",
      "Training at Epoch 80 iteration 0 with loss 0.12766. Total time 3.90111 hours\n",
      "Training at Epoch 80 iteration 100 with loss 0.17589. Total time 3.91361 hours\n",
      "Training at Epoch 80 iteration 200 with loss 0.10986. Total time 3.92611 hours\n",
      "Training at Epoch 80 iteration 300 with loss 0.10999. Total time 3.93861 hours\n",
      "Validation at Epoch 80 , MSE: 0.16527 , Pearson Correlation: 0.86988 with p-value: 0.0 , Concordance Index: 0.87389\n",
      "Training at Epoch 81 iteration 0 with loss 0.17131. Total time 3.94805 hours\n",
      "Training at Epoch 81 iteration 100 with loss 0.12267. Total time 3.96166 hours\n",
      "Training at Epoch 81 iteration 200 with loss 0.13497. Total time 3.97583 hours\n",
      "Training at Epoch 81 iteration 300 with loss 0.11957. Total time 3.99055 hours\n",
      "Validation at Epoch 81 , MSE: 0.16968 , Pearson Correlation: 0.86792 with p-value: 0.0 , Concordance Index: 0.87275\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 80 Testing MSE: 0.23454754851165874 , Pearson Correlation: 0.8266521435643059 with p-value: 0.0 , Concordance Index: 0.8181573056273987\n",
      "Training at Epoch 82 iteration 0 with loss 0.12084. Total time 4.015 hours\n",
      "Training at Epoch 82 iteration 100 with loss 0.15205. Total time 4.02944 hours\n",
      "Training at Epoch 82 iteration 200 with loss 0.13972. Total time 4.04333 hours\n",
      "Training at Epoch 82 iteration 300 with loss 0.09669. Total time 4.05722 hours\n",
      "Validation at Epoch 82 , MSE: 0.17213 , Pearson Correlation: 0.86714 with p-value: 0.0 , Concordance Index: 0.87017\n",
      "Training at Epoch 83 iteration 0 with loss 0.12591. Total time 4.06833 hours\n",
      "Training at Epoch 83 iteration 100 with loss 0.12924. Total time 4.0825 hours\n",
      "Training at Epoch 83 iteration 200 with loss 0.13272. Total time 4.09666 hours\n",
      "Training at Epoch 83 iteration 300 with loss 0.13225. Total time 4.11055 hours\n",
      "Validation at Epoch 83 , MSE: 0.16506 , Pearson Correlation: 0.87033 with p-value: 0.0 , Concordance Index: 0.87495\n",
      "Training at Epoch 84 iteration 0 with loss 0.12329. Total time 4.12138 hours\n",
      "Training at Epoch 84 iteration 100 with loss 0.13855. Total time 4.13583 hours\n",
      "Training at Epoch 84 iteration 200 with loss 0.12602. Total time 4.15 hours\n",
      "Training at Epoch 84 iteration 300 with loss 0.13973. Total time 4.16388 hours\n",
      "Validation at Epoch 84 , MSE: 0.16759 , Pearson Correlation: 0.86856 with p-value: 0.0 , Concordance Index: 0.87370\n",
      "Training at Epoch 85 iteration 0 with loss 0.12715. Total time 4.17472 hours\n",
      "Training at Epoch 85 iteration 100 with loss 0.14449. Total time 4.18916 hours\n",
      "Training at Epoch 85 iteration 200 with loss 0.15777. Total time 4.20305 hours\n",
      "Training at Epoch 85 iteration 300 with loss 0.14983. Total time 4.21694 hours\n",
      "Validation at Epoch 85 , MSE: 0.16649 , Pearson Correlation: 0.87063 with p-value: 0.0 , Concordance Index: 0.87548\n",
      "Training at Epoch 86 iteration 0 with loss 0.11938. Total time 4.22777 hours\n",
      "Training at Epoch 86 iteration 100 with loss 0.11215. Total time 4.24222 hours\n",
      "Training at Epoch 86 iteration 200 with loss 0.13418. Total time 4.25611 hours\n",
      "Training at Epoch 86 iteration 300 with loss 0.14425. Total time 4.27 hours\n",
      "Validation at Epoch 86 , MSE: 0.17045 , Pearson Correlation: 0.86854 with p-value: 0.0 , Concordance Index: 0.87360\n",
      "Training at Epoch 87 iteration 0 with loss 0.10979. Total time 4.28111 hours\n",
      "Training at Epoch 87 iteration 100 with loss 0.13643. Total time 4.29555 hours\n",
      "Training at Epoch 87 iteration 200 with loss 0.15275. Total time 4.30944 hours\n",
      "Training at Epoch 87 iteration 300 with loss 0.13766. Total time 4.32361 hours\n",
      "Validation at Epoch 87 , MSE: 0.17128 , Pearson Correlation: 0.86598 with p-value: 0.0 , Concordance Index: 0.87214\n",
      "Training at Epoch 88 iteration 0 with loss 0.14132. Total time 4.33444 hours\n",
      "Training at Epoch 88 iteration 100 with loss 0.13147. Total time 4.34861 hours\n",
      "Training at Epoch 88 iteration 200 with loss 0.12269. Total time 4.3625 hours\n",
      "Training at Epoch 88 iteration 300 with loss 0.11962. Total time 4.37666 hours\n",
      "Validation at Epoch 88 , MSE: 0.16875 , Pearson Correlation: 0.86743 with p-value: 0.0 , Concordance Index: 0.87377\n",
      "Training at Epoch 89 iteration 0 with loss 0.12858. Total time 4.3875 hours\n",
      "Training at Epoch 89 iteration 100 with loss 0.10164. Total time 4.40194 hours\n",
      "Training at Epoch 89 iteration 200 with loss 0.11432. Total time 4.41583 hours\n",
      "Training at Epoch 89 iteration 300 with loss 0.15262. Total time 4.43027 hours\n",
      "Validation at Epoch 89 , MSE: 0.16548 , Pearson Correlation: 0.87080 with p-value: 0.0 , Concordance Index: 0.87421\n",
      "Training at Epoch 90 iteration 0 with loss 0.13915. Total time 4.44 hours\n",
      "Training at Epoch 90 iteration 100 with loss 0.14505. Total time 4.45305 hours\n",
      "Training at Epoch 90 iteration 200 with loss 0.13334. Total time 4.46555 hours\n",
      "Training at Epoch 90 iteration 300 with loss 0.12359. Total time 4.47805 hours\n",
      "Validation at Epoch 90 , MSE: 0.17514 , Pearson Correlation: 0.86327 with p-value: 0.0 , Concordance Index: 0.87291\n",
      "Training at Epoch 91 iteration 0 with loss 0.11810. Total time 4.48722 hours\n",
      "Training at Epoch 91 iteration 100 with loss 0.12452. Total time 4.5 hours\n",
      "Training at Epoch 91 iteration 200 with loss 0.15224. Total time 4.5125 hours\n",
      "Training at Epoch 91 iteration 300 with loss 0.11079. Total time 4.525 hours\n",
      "Validation at Epoch 91 , MSE: 0.16848 , Pearson Correlation: 0.86916 with p-value: 0.0 , Concordance Index: 0.87724\n",
      "Training at Epoch 92 iteration 0 with loss 0.11230. Total time 4.53416 hours\n",
      "Training at Epoch 92 iteration 100 with loss 0.11984. Total time 4.54694 hours\n",
      "Training at Epoch 92 iteration 200 with loss 0.12535. Total time 4.55944 hours\n",
      "Training at Epoch 92 iteration 300 with loss 0.11998. Total time 4.57222 hours\n",
      "Validation at Epoch 92 , MSE: 0.16885 , Pearson Correlation: 0.86923 with p-value: 0.0 , Concordance Index: 0.87425\n",
      "Training at Epoch 93 iteration 0 with loss 0.11518. Total time 4.58138 hours\n",
      "Training at Epoch 93 iteration 100 with loss 0.11063. Total time 4.59416 hours\n",
      "Training at Epoch 93 iteration 200 with loss 0.10536. Total time 4.60666 hours\n",
      "Training at Epoch 93 iteration 300 with loss 0.18368. Total time 4.61972 hours\n",
      "Validation at Epoch 93 , MSE: 0.16671 , Pearson Correlation: 0.86898 with p-value: 0.0 , Concordance Index: 0.87739\n",
      "Training at Epoch 94 iteration 0 with loss 0.09561. Total time 4.62888 hours\n",
      "Training at Epoch 94 iteration 100 with loss 0.09058. Total time 4.64138 hours\n",
      "Training at Epoch 94 iteration 200 with loss 0.12698. Total time 4.65388 hours\n",
      "Training at Epoch 94 iteration 300 with loss 0.12644. Total time 4.66638 hours\n",
      "Validation at Epoch 94 , MSE: 0.17124 , Pearson Correlation: 0.86950 with p-value: 0.0 , Concordance Index: 0.87501\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 95 iteration 0 with loss 0.13113. Total time 4.67555 hours\n",
      "Training at Epoch 95 iteration 100 with loss 0.12292. Total time 4.68833 hours\n",
      "Training at Epoch 95 iteration 200 with loss 0.12200. Total time 4.70111 hours\n",
      "Training at Epoch 95 iteration 300 with loss 0.13942. Total time 4.71333 hours\n",
      "Validation at Epoch 95 , MSE: 0.16851 , Pearson Correlation: 0.86837 with p-value: 0.0 , Concordance Index: 0.87641\n",
      "Training at Epoch 96 iteration 0 with loss 0.09269. Total time 4.72222 hours\n",
      "Training at Epoch 96 iteration 100 with loss 0.10596. Total time 4.73472 hours\n",
      "Training at Epoch 96 iteration 200 with loss 0.12924. Total time 4.74694 hours\n",
      "Training at Epoch 96 iteration 300 with loss 0.15125. Total time 4.75916 hours\n",
      "Validation at Epoch 96 , MSE: 0.16800 , Pearson Correlation: 0.86973 with p-value: 0.0 , Concordance Index: 0.87470\n",
      "Training at Epoch 97 iteration 0 with loss 0.12561. Total time 4.76833 hours\n",
      "Training at Epoch 97 iteration 100 with loss 0.15103. Total time 4.78111 hours\n",
      "Training at Epoch 97 iteration 200 with loss 0.09907. Total time 4.79333 hours\n",
      "Training at Epoch 97 iteration 300 with loss 0.11432. Total time 4.80666 hours\n",
      "Validation at Epoch 97 , MSE: 0.17495 , Pearson Correlation: 0.86576 with p-value: 0.0 , Concordance Index: 0.87230\n",
      "Training at Epoch 98 iteration 0 with loss 0.10532. Total time 4.8175 hours\n",
      "Training at Epoch 98 iteration 100 with loss 0.11919. Total time 4.83194 hours\n",
      "Training at Epoch 98 iteration 200 with loss 0.10883. Total time 4.84611 hours\n",
      "Training at Epoch 98 iteration 300 with loss 0.17989. Total time 4.86027 hours\n",
      "Validation at Epoch 98 , MSE: 0.16839 , Pearson Correlation: 0.86963 with p-value: 0.0 , Concordance Index: 0.87616\n",
      "Training at Epoch 99 iteration 0 with loss 0.10243. Total time 4.87111 hours\n",
      "Training at Epoch 99 iteration 100 with loss 0.11852. Total time 4.88527 hours\n",
      "Training at Epoch 99 iteration 200 with loss 0.11635. Total time 4.89944 hours\n",
      "Training at Epoch 99 iteration 300 with loss 0.10899. Total time 4.91472 hours\n",
      "Validation at Epoch 99 , MSE: 0.16262 , Pearson Correlation: 0.87319 with p-value: 0.0 , Concordance Index: 0.87758\n",
      "Training at Epoch 100 iteration 0 with loss 0.09048. Total time 4.92694 hours\n",
      "Training at Epoch 100 iteration 100 with loss 0.11637. Total time 4.94277 hours\n",
      "Training at Epoch 100 iteration 200 with loss 0.10594. Total time 4.95805 hours\n",
      "Training at Epoch 100 iteration 300 with loss 0.11360. Total time 4.97361 hours\n",
      "Validation at Epoch 100 , MSE: 0.16597 , Pearson Correlation: 0.87310 with p-value: 0.0 , Concordance Index: 0.87787\n",
      "--- Go for Testing ---\n",
      "Testing MSE: 0.22958234886088233 , Pearson Correlation: 0.8310964129153074 with p-value: 0.0 , Concordance Index: 0.8244280163393082\n",
      "--- Training Finished ---\n"
     ]
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYoAAAELCAYAAADHksFt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QBhv8c+C51ftujaRdSUX3r8XmSXGINCPaT4BXVr1kTSlJ5P02kc5o5mO2DXxGYVapNBPcD+psf6hqfYuuonzJ7WXA90hnEBuAJ0lXMe2yDTFNJ436Wqtb6j5gQVVbrSldH9vGY5s5UZhVeSA/H0fqKqr2u6r1WsMv/zXpLOL1EfF4qTFP6fnwNsT0UD7Os2tsezabYzZrCScK61WP5ednVLX/FykZ7B0RK7bxvaeQziCeTiKSDiV1/dxZtl+9GCpExKOSVgFvkHR6RDyZ33MB8DLgn7YxTrOGOFFYr9pI+kv8WEmrgUeBOyPiAUn/DzhX0mzSjG6PkK5ieiVwdUR8ZSvv/V3gVOB8SV8m1SY+BPymar9b8/PJklaQ6hir69yH8SHSVU/flvQ5YCrpSqtH2DyntFlLuJhtPSnSfMxvJ/X//4A03edr87Z/BV5HKjz/GylZfJT0h9VNDbz394B3AS8Hvk2aOe6tpNnNyve7GTg9H/fHOYY/q/Oe3yXdozENuIg0zeZtwCsiz6tu1iqe4c7MzAr5jMLMzAo5UZiZWSEnCjMzK+REYWZmhZwozMyskBOFmZkVcqIwM7NCThRmZlbo/wPUYqZ6MP2OewAAAABJRU5ErkJggg==\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "drug_encoding = 'Morgan'\n",
    "target_encoding = 'CNN'\n",
    "train, val, test = data_process(X_drug, X_target, y, \n",
    "                                drug_encoding, target_encoding, \n",
    "                                split_method='random',frac=[0.7,0.1,0.2], random_seed = 4)\n",
    "\n",
    "# use the parameters setting provided in the paper: https://arxiv.org/abs/1801.10193\n",
    "config = generate_config(drug_encoding = drug_encoding, \n",
    "                         target_encoding = target_encoding, \n",
    "                         cls_hidden_dims = [1024,1024,512], \n",
    "                         train_epoch = 100, \n",
    "                         LR = 0.001, \n",
    "                         batch_size = 256,\n",
    "                         cnn_target_filters = [32,64,96],\n",
    "                         cnn_target_kernels = [4,8,12]\n",
    "                        )\n",
    "model = models.model_initialize(**config)\n",
    "model.train(train, val, test)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "in total: 118254 drug-target pairs\n",
      "encoding drug...\n",
      "unique drugs: 2068\n",
      "drug encoding finished...\n",
      "encoding protein...\n",
      "unique target sequence: 229\n",
      "protein encoding finished...\n",
      "splitting dataset...\n",
      "Done.\n",
      "Let's use 1 GPU!\n",
      "--- Data Preparation ---\n",
      "--- Go for Training ---\n",
      "Training at Epoch 1 iteration 0 with loss 139.151. Total time 0.00083 hours\n",
      "Training at Epoch 1 iteration 100 with loss 0.92491. Total time 0.01305 hours\n",
      "Training at Epoch 1 iteration 200 with loss 0.72171. Total time 0.02555 hours\n",
      "Training at Epoch 1 iteration 300 with loss 0.66801. Total time 0.03805 hours\n",
      "Validation at Epoch 1 , MSE: 0.47116 , Pearson Correlation: 0.59425 with p-value: 0.0 , Concordance Index: 0.71596\n",
      "Training at Epoch 2 iteration 0 with loss 0.55540. Total time 0.04666 hours\n",
      "Training at Epoch 2 iteration 100 with loss 0.83255. Total time 0.05944 hours\n",
      "Training at Epoch 2 iteration 200 with loss 0.47626. Total time 0.07194 hours\n",
      "Training at Epoch 2 iteration 300 with loss 0.52414. Total time 0.08416 hours\n",
      "Validation at Epoch 2 , MSE: 0.40377 , Pearson Correlation: 0.65180 with p-value: 0.0 , Concordance Index: 0.75762\n",
      "Training at Epoch 3 iteration 0 with loss 0.51576. Total time 0.09277 hours\n",
      "Training at Epoch 3 iteration 100 with loss 0.52660. Total time 0.10555 hours\n",
      "Training at Epoch 3 iteration 200 with loss 0.58189. Total time 0.11805 hours\n",
      "Training at Epoch 3 iteration 300 with loss 0.54312. Total time 0.13055 hours\n",
      "Validation at Epoch 3 , MSE: 0.39253 , Pearson Correlation: 0.66433 with p-value: 0.0 , Concordance Index: 0.76693\n",
      "Training at Epoch 4 iteration 0 with loss 0.48822. Total time 0.13944 hours\n",
      "Training at Epoch 4 iteration 100 with loss 0.55553. Total time 0.15222 hours\n",
      "Training at Epoch 4 iteration 200 with loss 0.45717. Total time 0.165 hours\n",
      "Training at Epoch 4 iteration 300 with loss 0.51685. Total time 0.1775 hours\n",
      "Validation at Epoch 4 , MSE: 0.47769 , Pearson Correlation: 0.67574 with p-value: 0.0 , Concordance Index: 0.76926\n",
      "Training at Epoch 5 iteration 0 with loss 0.68304. Total time 0.18638 hours\n",
      "Training at Epoch 5 iteration 100 with loss 0.32928. Total time 0.19944 hours\n",
      "Training at Epoch 5 iteration 200 with loss 0.45336. Total time 0.21222 hours\n",
      "Training at Epoch 5 iteration 300 with loss 0.53185. Total time 0.225 hours\n",
      "Validation at Epoch 5 , MSE: 0.42256 , Pearson Correlation: 0.67608 with p-value: 0.0 , Concordance Index: 0.76847\n",
      "Training at Epoch 6 iteration 0 with loss 0.60687. Total time 0.23388 hours\n",
      "Training at Epoch 6 iteration 100 with loss 0.45294. Total time 0.24694 hours\n",
      "Training at Epoch 6 iteration 200 with loss 0.54720. Total time 0.25972 hours\n",
      "Training at Epoch 6 iteration 300 with loss 0.47929. Total time 0.27222 hours\n",
      "Validation at Epoch 6 , MSE: 0.38225 , Pearson Correlation: 0.68186 with p-value: 0.0 , Concordance Index: 0.77260\n",
      "Training at Epoch 7 iteration 0 with loss 0.55829. Total time 0.28111 hours\n",
      "Training at Epoch 7 iteration 100 with loss 0.56768. Total time 0.29416 hours\n",
      "Training at Epoch 7 iteration 200 with loss 0.46850. Total time 0.30666 hours\n",
      "Training at Epoch 7 iteration 300 with loss 0.55114. Total time 0.31944 hours\n",
      "Validation at Epoch 7 , MSE: 0.40753 , Pearson Correlation: 0.67923 with p-value: 0.0 , Concordance Index: 0.76971\n",
      "Training at Epoch 8 iteration 0 with loss 0.50163. Total time 0.32833 hours\n",
      "Training at Epoch 8 iteration 100 with loss 0.53704. Total time 0.34111 hours\n",
      "Training at Epoch 8 iteration 200 with loss 0.61284. Total time 0.35388 hours\n",
      "Training at Epoch 8 iteration 300 with loss 0.43925. Total time 0.36638 hours\n",
      "Validation at Epoch 8 , MSE: 0.38438 , Pearson Correlation: 0.68155 with p-value: 0.0 , Concordance Index: 0.77571\n",
      "Training at Epoch 9 iteration 0 with loss 0.40052. Total time 0.37527 hours\n",
      "Training at Epoch 9 iteration 100 with loss 0.52778. Total time 0.38805 hours\n",
      "Training at Epoch 9 iteration 200 with loss 0.37347. Total time 0.40055 hours\n",
      "Training at Epoch 9 iteration 300 with loss 0.48434. Total time 0.41305 hours\n",
      "Validation at Epoch 9 , MSE: 0.39545 , Pearson Correlation: 0.68273 with p-value: 0.0 , Concordance Index: 0.77210\n",
      "Training at Epoch 10 iteration 0 with loss 0.52637. Total time 0.42194 hours\n",
      "Training at Epoch 10 iteration 100 with loss 0.62542. Total time 0.435 hours\n",
      "Training at Epoch 10 iteration 200 with loss 0.47816. Total time 0.4475 hours\n",
      "Training at Epoch 10 iteration 300 with loss 0.45929. Total time 0.46027 hours\n",
      "Validation at Epoch 10 , MSE: 0.37828 , Pearson Correlation: 0.68213 with p-value: 0.0 , Concordance Index: 0.77399\n",
      "Training at Epoch 11 iteration 0 with loss 0.64746. Total time 0.46888 hours\n",
      "Training at Epoch 11 iteration 100 with loss 0.54550. Total time 0.48166 hours\n",
      "Training at Epoch 11 iteration 200 with loss 0.48338. Total time 0.49416 hours\n",
      "Training at Epoch 11 iteration 300 with loss 0.50018. Total time 0.50666 hours\n",
      "Validation at Epoch 11 , MSE: 0.37888 , Pearson Correlation: 0.68088 with p-value: 0.0 , Concordance Index: 0.77485\n",
      "Training at Epoch 12 iteration 0 with loss 0.42864. Total time 0.51555 hours\n",
      "Training at Epoch 12 iteration 100 with loss 0.65543. Total time 0.52833 hours\n",
      "Training at Epoch 12 iteration 200 with loss 0.48771. Total time 0.54055 hours\n",
      "Training at Epoch 12 iteration 300 with loss 0.62631. Total time 0.55305 hours\n",
      "Validation at Epoch 12 , MSE: 0.61146 , Pearson Correlation: 0.68431 with p-value: 0.0 , Concordance Index: 0.77609\n",
      "Training at Epoch 13 iteration 0 with loss 0.87771. Total time 0.56166 hours\n",
      "Training at Epoch 13 iteration 100 with loss 0.47807. Total time 0.57416 hours\n",
      "Training at Epoch 13 iteration 200 with loss 0.47196. Total time 0.58666 hours\n",
      "Training at Epoch 13 iteration 300 with loss 0.37160. Total time 0.59888 hours\n",
      "Validation at Epoch 13 , MSE: 0.41373 , Pearson Correlation: 0.68859 with p-value: 0.0 , Concordance Index: 0.77751\n",
      "Training at Epoch 14 iteration 0 with loss 0.42731. Total time 0.6075 hours\n",
      "Training at Epoch 14 iteration 100 with loss 0.47642. Total time 0.62 hours\n",
      "Training at Epoch 14 iteration 200 with loss 0.44431. Total time 0.63222 hours\n",
      "Training at Epoch 14 iteration 300 with loss 0.35827. Total time 0.64444 hours\n",
      "Validation at Epoch 14 , MSE: 0.35492 , Pearson Correlation: 0.72858 with p-value: 0.0 , Concordance Index: 0.78533\n",
      "Training at Epoch 15 iteration 0 with loss 0.46725. Total time 0.65305 hours\n",
      "Training at Epoch 15 iteration 100 with loss 0.67004. Total time 0.66555 hours\n",
      "Training at Epoch 15 iteration 200 with loss 0.36498. Total time 0.67777 hours\n",
      "Training at Epoch 15 iteration 300 with loss 0.38361. Total time 0.69 hours\n",
      "Validation at Epoch 15 , MSE: 0.35623 , Pearson Correlation: 0.73169 with p-value: 0.0 , Concordance Index: 0.78648\n",
      "Training at Epoch 16 iteration 0 with loss 0.37282. Total time 0.69861 hours\n",
      "Training at Epoch 16 iteration 100 with loss 0.51060. Total time 0.71083 hours\n",
      "Training at Epoch 16 iteration 200 with loss 0.54095. Total time 0.72333 hours\n",
      "Training at Epoch 16 iteration 300 with loss 0.50971. Total time 0.73555 hours\n",
      "Validation at Epoch 16 , MSE: 0.32341 , Pearson Correlation: 0.73391 with p-value: 0.0 , Concordance Index: 0.78625\n",
      "Training at Epoch 17 iteration 0 with loss 0.46914. Total time 0.74416 hours\n",
      "Training at Epoch 17 iteration 100 with loss 0.46966. Total time 0.75638 hours\n",
      "Training at Epoch 17 iteration 200 with loss 0.46558. Total time 0.76888 hours\n",
      "Training at Epoch 17 iteration 300 with loss 0.66859. Total time 0.78083 hours\n",
      "Validation at Epoch 17 , MSE: 0.31983 , Pearson Correlation: 0.74604 with p-value: 0.0 , Concordance Index: 0.79392\n",
      "Training at Epoch 18 iteration 0 with loss 0.40798. Total time 0.78944 hours\n",
      "Training at Epoch 18 iteration 100 with loss 0.44931. Total time 0.80194 hours\n",
      "Training at Epoch 18 iteration 200 with loss 0.40245. Total time 0.81416 hours\n",
      "Training at Epoch 18 iteration 300 with loss 0.50800. Total time 0.82638 hours\n",
      "Validation at Epoch 18 , MSE: 0.31906 , Pearson Correlation: 0.74330 with p-value: 0.0 , Concordance Index: 0.79078\n",
      "Training at Epoch 19 iteration 0 with loss 0.42406. Total time 0.835 hours\n",
      "Training at Epoch 19 iteration 100 with loss 0.46181. Total time 0.8475 hours\n",
      "Training at Epoch 19 iteration 200 with loss 0.37483. Total time 0.85972 hours\n",
      "Training at Epoch 19 iteration 300 with loss 0.33094. Total time 0.87194 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Validation at Epoch 19 , MSE: 0.30026 , Pearson Correlation: 0.75754 with p-value: 0.0 , Concordance Index: 0.80030\n",
      "Training at Epoch 20 iteration 0 with loss 0.37859. Total time 0.88055 hours\n",
      "Training at Epoch 20 iteration 100 with loss 0.57402. Total time 0.89277 hours\n",
      "Training at Epoch 20 iteration 200 with loss 0.47494. Total time 0.905 hours\n",
      "Training at Epoch 20 iteration 300 with loss 0.38230. Total time 0.91722 hours\n",
      "Validation at Epoch 20 , MSE: 0.30531 , Pearson Correlation: 0.75324 with p-value: 0.0 , Concordance Index: 0.79875\n",
      "Training at Epoch 21 iteration 0 with loss 0.31099. Total time 0.92583 hours\n",
      "Training at Epoch 21 iteration 100 with loss 0.38917. Total time 0.93833 hours\n",
      "Training at Epoch 21 iteration 200 with loss 0.38860. Total time 0.95055 hours\n",
      "Training at Epoch 21 iteration 300 with loss 0.40511. Total time 0.96277 hours\n",
      "Validation at Epoch 21 , MSE: 0.30840 , Pearson Correlation: 0.74842 with p-value: 0.0 , Concordance Index: 0.79036\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 20 Testing MSE: 0.4074880620442371 , Pearson Correlation: 0.6771415428801439 with p-value: 0.0 , Concordance Index: 0.7323194160295661\n",
      "Training at Epoch 22 iteration 0 with loss 0.40593. Total time 0.98194 hours\n",
      "Training at Epoch 22 iteration 100 with loss 0.28970. Total time 0.99444 hours\n",
      "Training at Epoch 22 iteration 200 with loss 0.44233. Total time 1.00666 hours\n",
      "Training at Epoch 22 iteration 300 with loss 0.36033. Total time 1.01888 hours\n",
      "Validation at Epoch 22 , MSE: 0.30096 , Pearson Correlation: 0.76917 with p-value: 0.0 , Concordance Index: 0.80882\n",
      "Training at Epoch 23 iteration 0 with loss 0.38324. Total time 1.0275 hours\n",
      "Training at Epoch 23 iteration 100 with loss 0.34517. Total time 1.04 hours\n",
      "Training at Epoch 23 iteration 200 with loss 0.34436. Total time 1.05222 hours\n",
      "Training at Epoch 23 iteration 300 with loss 0.36350. Total time 1.06444 hours\n",
      "Validation at Epoch 23 , MSE: 0.34336 , Pearson Correlation: 0.76048 with p-value: 0.0 , Concordance Index: 0.80543\n",
      "Training at Epoch 24 iteration 0 with loss 0.56880. Total time 1.07305 hours\n",
      "Training at Epoch 24 iteration 100 with loss 0.44685. Total time 1.08555 hours\n",
      "Training at Epoch 24 iteration 200 with loss 0.37783. Total time 1.09777 hours\n",
      "Training at Epoch 24 iteration 300 with loss 0.35504. Total time 1.11 hours\n",
      "Validation at Epoch 24 , MSE: 0.28842 , Pearson Correlation: 0.77229 with p-value: 0.0 , Concordance Index: 0.80428\n",
      "Training at Epoch 25 iteration 0 with loss 0.35147. Total time 1.11861 hours\n",
      "Training at Epoch 25 iteration 100 with loss 0.40910. Total time 1.13083 hours\n",
      "Training at Epoch 25 iteration 200 with loss 0.83525. Total time 1.14305 hours\n",
      "Training at Epoch 25 iteration 300 with loss 0.31431. Total time 1.155 hours\n",
      "Validation at Epoch 25 , MSE: 0.30808 , Pearson Correlation: 0.77801 with p-value: 0.0 , Concordance Index: 0.81042\n",
      "Training at Epoch 26 iteration 0 with loss 0.44263. Total time 1.16361 hours\n",
      "Training at Epoch 26 iteration 100 with loss 0.32508. Total time 1.17583 hours\n",
      "Training at Epoch 26 iteration 200 with loss 0.37392. Total time 1.18805 hours\n",
      "Training at Epoch 26 iteration 300 with loss 0.32935. Total time 1.20027 hours\n",
      "Validation at Epoch 26 , MSE: 0.27859 , Pearson Correlation: 0.77981 with p-value: 0.0 , Concordance Index: 0.81201\n",
      "Training at Epoch 27 iteration 0 with loss 0.38199. Total time 1.20861 hours\n",
      "Training at Epoch 27 iteration 100 with loss 0.41124. Total time 1.22111 hours\n",
      "Training at Epoch 27 iteration 200 with loss 0.33844. Total time 1.23305 hours\n",
      "Training at Epoch 27 iteration 300 with loss 0.33629. Total time 1.24527 hours\n",
      "Validation at Epoch 27 , MSE: 0.27010 , Pearson Correlation: 0.78660 with p-value: 0.0 , Concordance Index: 0.81430\n",
      "Training at Epoch 28 iteration 0 with loss 0.31288. Total time 1.25361 hours\n",
      "Training at Epoch 28 iteration 100 with loss 0.30103. Total time 1.26611 hours\n",
      "Training at Epoch 28 iteration 200 with loss 0.31864. Total time 1.27805 hours\n",
      "Training at Epoch 28 iteration 300 with loss 0.34984. Total time 1.29027 hours\n",
      "Validation at Epoch 28 , MSE: 0.30261 , Pearson Correlation: 0.78662 with p-value: 0.0 , Concordance Index: 0.81608\n",
      "Training at Epoch 29 iteration 0 with loss 0.23912. Total time 1.29861 hours\n",
      "Training at Epoch 29 iteration 100 with loss 0.24132. Total time 1.31111 hours\n",
      "Training at Epoch 29 iteration 200 with loss 0.51232. Total time 1.32333 hours\n",
      "Training at Epoch 29 iteration 300 with loss 0.31497. Total time 1.33527 hours\n",
      "Validation at Epoch 29 , MSE: 0.30170 , Pearson Correlation: 0.78859 with p-value: 0.0 , Concordance Index: 0.81858\n",
      "Training at Epoch 30 iteration 0 with loss 0.37481. Total time 1.34388 hours\n",
      "Training at Epoch 30 iteration 100 with loss 0.32834. Total time 1.35611 hours\n",
      "Training at Epoch 30 iteration 200 with loss 0.25981. Total time 1.36833 hours\n",
      "Training at Epoch 30 iteration 300 with loss 0.33762. Total time 1.38027 hours\n",
      "Validation at Epoch 30 , MSE: 0.34803 , Pearson Correlation: 0.79818 with p-value: 0.0 , Concordance Index: 0.82349\n",
      "Training at Epoch 31 iteration 0 with loss 0.39004. Total time 1.38861 hours\n",
      "Training at Epoch 31 iteration 100 with loss 0.35363. Total time 1.40111 hours\n",
      "Training at Epoch 31 iteration 200 with loss 0.31078. Total time 1.41333 hours\n",
      "Training at Epoch 31 iteration 300 with loss 0.31148. Total time 1.42527 hours\n",
      "Validation at Epoch 31 , MSE: 0.26304 , Pearson Correlation: 0.79768 with p-value: 0.0 , Concordance Index: 0.82184\n",
      "Training at Epoch 32 iteration 0 with loss 0.23980. Total time 1.43361 hours\n",
      "Training at Epoch 32 iteration 100 with loss 0.27175. Total time 1.44583 hours\n",
      "Training at Epoch 32 iteration 200 with loss 0.30952. Total time 1.45805 hours\n",
      "Training at Epoch 32 iteration 300 with loss 0.36802. Total time 1.47 hours\n",
      "Validation at Epoch 32 , MSE: 0.25732 , Pearson Correlation: 0.80710 with p-value: 0.0 , Concordance Index: 0.82820\n",
      "Training at Epoch 33 iteration 0 with loss 0.28356. Total time 1.47805 hours\n",
      "Training at Epoch 33 iteration 100 with loss 0.30136. Total time 1.49027 hours\n",
      "Training at Epoch 33 iteration 200 with loss 0.32523. Total time 1.50222 hours\n",
      "Training at Epoch 33 iteration 300 with loss 0.26181. Total time 1.51416 hours\n",
      "Validation at Epoch 33 , MSE: 0.26432 , Pearson Correlation: 0.80803 with p-value: 0.0 , Concordance Index: 0.82934\n",
      "Training at Epoch 34 iteration 0 with loss 0.26370. Total time 1.52222 hours\n",
      "Training at Epoch 34 iteration 100 with loss 0.29154. Total time 1.53444 hours\n",
      "Training at Epoch 34 iteration 200 with loss 0.31491. Total time 1.54638 hours\n",
      "Training at Epoch 34 iteration 300 with loss 0.26574. Total time 1.55833 hours\n",
      "Validation at Epoch 34 , MSE: 0.24846 , Pearson Correlation: 0.80811 with p-value: 0.0 , Concordance Index: 0.82899\n",
      "Training at Epoch 35 iteration 0 with loss 0.26462. Total time 1.56666 hours\n",
      "Training at Epoch 35 iteration 100 with loss 0.26138. Total time 1.57888 hours\n",
      "Training at Epoch 35 iteration 200 with loss 0.28060. Total time 1.59083 hours\n",
      "Training at Epoch 35 iteration 300 with loss 0.54971. Total time 1.60277 hours\n",
      "Validation at Epoch 35 , MSE: 0.25484 , Pearson Correlation: 0.81486 with p-value: 0.0 , Concordance Index: 0.83442\n",
      "Training at Epoch 36 iteration 0 with loss 0.38536. Total time 1.61083 hours\n",
      "Training at Epoch 36 iteration 100 with loss 0.30342. Total time 1.62305 hours\n",
      "Training at Epoch 36 iteration 200 with loss 0.28949. Total time 1.635 hours\n",
      "Training at Epoch 36 iteration 300 with loss 0.30542. Total time 1.64694 hours\n",
      "Validation at Epoch 36 , MSE: 0.24030 , Pearson Correlation: 0.81805 with p-value: 0.0 , Concordance Index: 0.83262\n",
      "Training at Epoch 37 iteration 0 with loss 0.33689. Total time 1.65527 hours\n",
      "Training at Epoch 37 iteration 100 with loss 0.27750. Total time 1.6675 hours\n",
      "Training at Epoch 37 iteration 200 with loss 0.21092. Total time 1.67916 hours\n",
      "Training at Epoch 37 iteration 300 with loss 0.23702. Total time 1.69111 hours\n",
      "Validation at Epoch 37 , MSE: 0.24270 , Pearson Correlation: 0.81826 with p-value: 0.0 , Concordance Index: 0.83724\n",
      "Training at Epoch 38 iteration 0 with loss 0.32344. Total time 1.69944 hours\n",
      "Training at Epoch 38 iteration 100 with loss 0.25665. Total time 1.71166 hours\n",
      "Training at Epoch 38 iteration 200 with loss 0.30585. Total time 1.72361 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 38 iteration 300 with loss 0.28728. Total time 1.73527 hours\n",
      "Validation at Epoch 38 , MSE: 0.22101 , Pearson Correlation: 0.82781 with p-value: 0.0 , Concordance Index: 0.83934\n",
      "Training at Epoch 39 iteration 0 with loss 0.29683. Total time 1.74361 hours\n",
      "Training at Epoch 39 iteration 100 with loss 0.29710. Total time 1.75583 hours\n",
      "Training at Epoch 39 iteration 200 with loss 0.30575. Total time 1.7675 hours\n",
      "Training at Epoch 39 iteration 300 with loss 0.30944. Total time 1.77944 hours\n",
      "Validation at Epoch 39 , MSE: 0.23318 , Pearson Correlation: 0.82686 with p-value: 0.0 , Concordance Index: 0.84243\n",
      "Training at Epoch 40 iteration 0 with loss 0.29567. Total time 1.78777 hours\n",
      "Training at Epoch 40 iteration 100 with loss 0.28910. Total time 1.8 hours\n",
      "Training at Epoch 40 iteration 200 with loss 0.28586. Total time 1.81194 hours\n",
      "Training at Epoch 40 iteration 300 with loss 0.26905. Total time 1.82388 hours\n",
      "Validation at Epoch 40 , MSE: 0.22273 , Pearson Correlation: 0.82665 with p-value: 0.0 , Concordance Index: 0.84440\n",
      "Training at Epoch 41 iteration 0 with loss 0.21085. Total time 1.83222 hours\n",
      "Training at Epoch 41 iteration 100 with loss 0.38818. Total time 1.84444 hours\n",
      "Training at Epoch 41 iteration 200 with loss 0.22718. Total time 1.85638 hours\n",
      "Training at Epoch 41 iteration 300 with loss 0.25605. Total time 1.86833 hours\n",
      "Validation at Epoch 41 , MSE: 0.22511 , Pearson Correlation: 0.83087 with p-value: 0.0 , Concordance Index: 0.84203\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 40 Testing MSE: 0.3090574541501039 , Pearson Correlation: 0.7691692469839407 with p-value: 0.0 , Concordance Index: 0.7820196195865305\n",
      "Training at Epoch 42 iteration 0 with loss 0.19349. Total time 1.88666 hours\n",
      "Training at Epoch 42 iteration 100 with loss 0.25012. Total time 1.89888 hours\n",
      "Training at Epoch 42 iteration 200 with loss 0.18126. Total time 1.91055 hours\n",
      "Training at Epoch 42 iteration 300 with loss 0.22945. Total time 1.92222 hours\n",
      "Validation at Epoch 42 , MSE: 0.23077 , Pearson Correlation: 0.83091 with p-value: 0.0 , Concordance Index: 0.84595\n",
      "Training at Epoch 43 iteration 0 with loss 0.32602. Total time 1.93027 hours\n",
      "Training at Epoch 43 iteration 100 with loss 0.21477. Total time 1.94222 hours\n",
      "Training at Epoch 43 iteration 200 with loss 0.21491. Total time 1.95361 hours\n",
      "Training at Epoch 43 iteration 300 with loss 0.29112. Total time 1.96555 hours\n",
      "Validation at Epoch 43 , MSE: 0.21793 , Pearson Correlation: 0.83318 with p-value: 0.0 , Concordance Index: 0.84604\n",
      "Training at Epoch 44 iteration 0 with loss 0.25974. Total time 1.97361 hours\n",
      "Training at Epoch 44 iteration 100 with loss 0.20444. Total time 1.98527 hours\n",
      "Training at Epoch 44 iteration 200 with loss 0.27317. Total time 1.99722 hours\n",
      "Training at Epoch 44 iteration 300 with loss 0.24173. Total time 2.00888 hours\n",
      "Validation at Epoch 44 , MSE: 0.23872 , Pearson Correlation: 0.83668 with p-value: 0.0 , Concordance Index: 0.85134\n",
      "Training at Epoch 45 iteration 0 with loss 0.28188. Total time 2.01666 hours\n",
      "Training at Epoch 45 iteration 100 with loss 0.28515. Total time 2.02888 hours\n",
      "Training at Epoch 45 iteration 200 with loss 0.25912. Total time 2.04055 hours\n",
      "Training at Epoch 45 iteration 300 with loss 0.32428. Total time 2.05222 hours\n",
      "Validation at Epoch 45 , MSE: 0.20598 , Pearson Correlation: 0.84018 with p-value: 0.0 , Concordance Index: 0.84943\n",
      "Training at Epoch 46 iteration 0 with loss 0.23870. Total time 2.06027 hours\n",
      "Training at Epoch 46 iteration 100 with loss 0.25201. Total time 2.07222 hours\n",
      "Training at Epoch 46 iteration 200 with loss 0.23005. Total time 2.08416 hours\n",
      "Training at Epoch 46 iteration 300 with loss 0.21424. Total time 2.09583 hours\n",
      "Validation at Epoch 46 , MSE: 0.20718 , Pearson Correlation: 0.83936 with p-value: 0.0 , Concordance Index: 0.85220\n",
      "Training at Epoch 47 iteration 0 with loss 0.22226. Total time 2.10388 hours\n",
      "Training at Epoch 47 iteration 100 with loss 0.21070. Total time 2.11611 hours\n",
      "Training at Epoch 47 iteration 200 with loss 0.22776. Total time 2.12777 hours\n",
      "Training at Epoch 47 iteration 300 with loss 0.23124. Total time 2.13944 hours\n",
      "Validation at Epoch 47 , MSE: 0.20683 , Pearson Correlation: 0.84103 with p-value: 0.0 , Concordance Index: 0.85208\n",
      "Training at Epoch 48 iteration 0 with loss 0.19994. Total time 2.14777 hours\n",
      "Training at Epoch 48 iteration 100 with loss 0.23423. Total time 2.15972 hours\n",
      "Training at Epoch 48 iteration 200 with loss 0.31132. Total time 2.17138 hours\n",
      "Training at Epoch 48 iteration 300 with loss 0.22374. Total time 2.18333 hours\n",
      "Validation at Epoch 48 , MSE: 0.21618 , Pearson Correlation: 0.83954 with p-value: 0.0 , Concordance Index: 0.84833\n",
      "Training at Epoch 49 iteration 0 with loss 0.23186. Total time 2.19138 hours\n",
      "Training at Epoch 49 iteration 100 with loss 0.25878. Total time 2.20361 hours\n",
      "Training at Epoch 49 iteration 200 with loss 0.20869. Total time 2.21527 hours\n",
      "Training at Epoch 49 iteration 300 with loss 0.23830. Total time 2.22694 hours\n",
      "Validation at Epoch 49 , MSE: 0.20435 , Pearson Correlation: 0.84234 with p-value: 0.0 , Concordance Index: 0.84689\n",
      "Training at Epoch 50 iteration 0 with loss 0.20774. Total time 2.23527 hours\n",
      "Training at Epoch 50 iteration 100 with loss 0.21219. Total time 2.24722 hours\n",
      "Training at Epoch 50 iteration 200 with loss 0.24735. Total time 2.25888 hours\n",
      "Training at Epoch 50 iteration 300 with loss 0.15556. Total time 2.27055 hours\n",
      "Validation at Epoch 50 , MSE: 0.21475 , Pearson Correlation: 0.84293 with p-value: 0.0 , Concordance Index: 0.84899\n",
      "Training at Epoch 51 iteration 0 with loss 0.23984. Total time 2.27861 hours\n",
      "Training at Epoch 51 iteration 100 with loss 0.24596. Total time 2.29083 hours\n",
      "Training at Epoch 51 iteration 200 with loss 0.23095. Total time 2.3025 hours\n",
      "Training at Epoch 51 iteration 300 with loss 0.22516. Total time 2.31444 hours\n",
      "Validation at Epoch 51 , MSE: 0.20825 , Pearson Correlation: 0.84647 with p-value: 0.0 , Concordance Index: 0.85162\n",
      "Training at Epoch 52 iteration 0 with loss 0.25862. Total time 2.3225 hours\n",
      "Training at Epoch 52 iteration 100 with loss 0.22226. Total time 2.33444 hours\n",
      "Training at Epoch 52 iteration 200 with loss 0.22835. Total time 2.34611 hours\n",
      "Training at Epoch 52 iteration 300 with loss 0.20873. Total time 2.35777 hours\n",
      "Validation at Epoch 52 , MSE: 0.20037 , Pearson Correlation: 0.84512 with p-value: 0.0 , Concordance Index: 0.85275\n",
      "Training at Epoch 53 iteration 0 with loss 0.18555. Total time 2.36611 hours\n",
      "Training at Epoch 53 iteration 100 with loss 0.19204. Total time 2.37805 hours\n",
      "Training at Epoch 53 iteration 200 with loss 0.19715. Total time 2.38972 hours\n",
      "Training at Epoch 53 iteration 300 with loss 0.20711. Total time 2.40138 hours\n",
      "Validation at Epoch 53 , MSE: 0.19529 , Pearson Correlation: 0.85011 with p-value: 0.0 , Concordance Index: 0.85644\n",
      "Training at Epoch 54 iteration 0 with loss 0.18066. Total time 2.40972 hours\n",
      "Training at Epoch 54 iteration 100 with loss 0.21099. Total time 2.42166 hours\n",
      "Training at Epoch 54 iteration 200 with loss 0.14702. Total time 2.43361 hours\n",
      "Training at Epoch 54 iteration 300 with loss 0.29109. Total time 2.44555 hours\n",
      "Validation at Epoch 54 , MSE: 0.19910 , Pearson Correlation: 0.84786 with p-value: 0.0 , Concordance Index: 0.85710\n",
      "Training at Epoch 55 iteration 0 with loss 0.20606. Total time 2.45444 hours\n",
      "Training at Epoch 55 iteration 100 with loss 0.18067. Total time 2.46638 hours\n",
      "Training at Epoch 55 iteration 200 with loss 0.25532. Total time 2.47805 hours\n",
      "Training at Epoch 55 iteration 300 with loss 0.19324. Total time 2.48972 hours\n",
      "Validation at Epoch 55 , MSE: 0.20287 , Pearson Correlation: 0.84489 with p-value: 0.0 , Concordance Index: 0.85713\n",
      "Training at Epoch 56 iteration 0 with loss 0.18986. Total time 2.49805 hours\n",
      "Training at Epoch 56 iteration 100 with loss 0.20249. Total time 2.51083 hours\n",
      "Training at Epoch 56 iteration 200 with loss 0.17756. Total time 2.52388 hours\n",
      "Training at Epoch 56 iteration 300 with loss 0.23683. Total time 2.53722 hours\n",
      "Validation at Epoch 56 , MSE: 0.19214 , Pearson Correlation: 0.85431 with p-value: 0.0 , Concordance Index: 0.85822\n",
      "Training at Epoch 57 iteration 0 with loss 0.20462. Total time 2.54722 hours\n",
      "Training at Epoch 57 iteration 100 with loss 0.18036. Total time 2.56083 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 57 iteration 200 with loss 0.29732. Total time 2.57388 hours\n",
      "Training at Epoch 57 iteration 300 with loss 0.18440. Total time 2.58722 hours\n",
      "Validation at Epoch 57 , MSE: 0.19220 , Pearson Correlation: 0.85391 with p-value: 0.0 , Concordance Index: 0.85842\n",
      "Training at Epoch 58 iteration 0 with loss 0.20996. Total time 2.59722 hours\n",
      "Training at Epoch 58 iteration 100 with loss 0.18108. Total time 2.61222 hours\n",
      "Training at Epoch 58 iteration 200 with loss 0.18802. Total time 2.62694 hours\n",
      "Training at Epoch 58 iteration 300 with loss 0.33405. Total time 2.64166 hours\n",
      "Validation at Epoch 58 , MSE: 0.18854 , Pearson Correlation: 0.85640 with p-value: 0.0 , Concordance Index: 0.86110\n",
      "Training at Epoch 59 iteration 0 with loss 0.19727. Total time 2.6525 hours\n",
      "Training at Epoch 59 iteration 100 with loss 0.22039. Total time 2.6675 hours\n",
      "Training at Epoch 59 iteration 200 with loss 0.23121. Total time 2.68222 hours\n",
      "Training at Epoch 59 iteration 300 with loss 0.22458. Total time 2.69527 hours\n",
      "Validation at Epoch 59 , MSE: 0.20255 , Pearson Correlation: 0.84986 with p-value: 0.0 , Concordance Index: 0.85638\n",
      "Training at Epoch 60 iteration 0 with loss 0.16583. Total time 2.70333 hours\n",
      "Training at Epoch 60 iteration 100 with loss 0.19876. Total time 2.71527 hours\n",
      "Training at Epoch 60 iteration 200 with loss 0.20703. Total time 2.72722 hours\n",
      "Training at Epoch 60 iteration 300 with loss 0.18042. Total time 2.73888 hours\n",
      "Validation at Epoch 60 , MSE: 0.19194 , Pearson Correlation: 0.85491 with p-value: 0.0 , Concordance Index: 0.85984\n",
      "Training at Epoch 61 iteration 0 with loss 0.18526. Total time 2.74694 hours\n",
      "Training at Epoch 61 iteration 100 with loss 0.15584. Total time 2.75888 hours\n",
      "Training at Epoch 61 iteration 200 with loss 0.23677. Total time 2.77083 hours\n",
      "Training at Epoch 61 iteration 300 with loss 0.20377. Total time 2.7825 hours\n",
      "Validation at Epoch 61 , MSE: 0.19373 , Pearson Correlation: 0.85288 with p-value: 0.0 , Concordance Index: 0.85913\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 60 Testing MSE: 0.2662457803913268 , Pearson Correlation: 0.8005218717719763 with p-value: 0.0 , Concordance Index: 0.8035420763832961\n",
      "Training at Epoch 62 iteration 0 with loss 0.16062. Total time 2.80055 hours\n",
      "Training at Epoch 62 iteration 100 with loss 0.19597. Total time 2.8125 hours\n",
      "Training at Epoch 62 iteration 200 with loss 0.18565. Total time 2.82416 hours\n",
      "Training at Epoch 62 iteration 300 with loss 0.19677. Total time 2.83583 hours\n",
      "Validation at Epoch 62 , MSE: 0.18228 , Pearson Correlation: 0.86028 with p-value: 0.0 , Concordance Index: 0.86127\n",
      "Training at Epoch 63 iteration 0 with loss 0.16256. Total time 2.84388 hours\n",
      "Training at Epoch 63 iteration 100 with loss 0.18137. Total time 2.85583 hours\n",
      "Training at Epoch 63 iteration 200 with loss 0.14437. Total time 2.86777 hours\n",
      "Training at Epoch 63 iteration 300 with loss 0.15614. Total time 2.87944 hours\n",
      "Validation at Epoch 63 , MSE: 0.18860 , Pearson Correlation: 0.85729 with p-value: 0.0 , Concordance Index: 0.86052\n",
      "Training at Epoch 64 iteration 0 with loss 0.16557. Total time 2.8875 hours\n",
      "Training at Epoch 64 iteration 100 with loss 0.15312. Total time 2.89944 hours\n",
      "Training at Epoch 64 iteration 200 with loss 0.15044. Total time 2.91111 hours\n",
      "Training at Epoch 64 iteration 300 with loss 0.25404. Total time 2.92277 hours\n",
      "Validation at Epoch 64 , MSE: 0.19810 , Pearson Correlation: 0.85576 with p-value: 0.0 , Concordance Index: 0.86118\n",
      "Training at Epoch 65 iteration 0 with loss 0.15899. Total time 2.93083 hours\n",
      "Training at Epoch 65 iteration 100 with loss 0.13266. Total time 2.94277 hours\n",
      "Training at Epoch 65 iteration 200 with loss 0.13836. Total time 2.95472 hours\n",
      "Training at Epoch 65 iteration 300 with loss 0.16414. Total time 2.96638 hours\n",
      "Validation at Epoch 65 , MSE: 0.19692 , Pearson Correlation: 0.85640 with p-value: 0.0 , Concordance Index: 0.85995\n",
      "Training at Epoch 66 iteration 0 with loss 0.14417. Total time 2.97444 hours\n",
      "Training at Epoch 66 iteration 100 with loss 0.14738. Total time 2.98638 hours\n",
      "Training at Epoch 66 iteration 200 with loss 0.21904. Total time 2.99805 hours\n",
      "Training at Epoch 66 iteration 300 with loss 0.18009. Total time 3.00972 hours\n",
      "Validation at Epoch 66 , MSE: 0.18576 , Pearson Correlation: 0.86062 with p-value: 0.0 , Concordance Index: 0.86086\n",
      "Training at Epoch 67 iteration 0 with loss 0.20543. Total time 3.01777 hours\n",
      "Training at Epoch 67 iteration 100 with loss 0.13878. Total time 3.03 hours\n",
      "Training at Epoch 67 iteration 200 with loss 0.15864. Total time 3.04166 hours\n",
      "Training at Epoch 67 iteration 300 with loss 0.19882. Total time 3.05361 hours\n",
      "Validation at Epoch 67 , MSE: 0.20234 , Pearson Correlation: 0.85750 with p-value: 0.0 , Concordance Index: 0.86337\n",
      "Training at Epoch 68 iteration 0 with loss 0.22253. Total time 3.06166 hours\n",
      "Training at Epoch 68 iteration 100 with loss 0.17649. Total time 3.07361 hours\n",
      "Training at Epoch 68 iteration 200 with loss 0.16252. Total time 3.08527 hours\n",
      "Training at Epoch 68 iteration 300 with loss 0.15168. Total time 3.09694 hours\n",
      "Validation at Epoch 68 , MSE: 0.17886 , Pearson Correlation: 0.86357 with p-value: 0.0 , Concordance Index: 0.86284\n",
      "Training at Epoch 69 iteration 0 with loss 0.18645. Total time 3.105 hours\n",
      "Training at Epoch 69 iteration 100 with loss 0.17837. Total time 3.11694 hours\n",
      "Training at Epoch 69 iteration 200 with loss 0.19159. Total time 3.12888 hours\n",
      "Training at Epoch 69 iteration 300 with loss 0.15497. Total time 3.14055 hours\n",
      "Validation at Epoch 69 , MSE: 0.18451 , Pearson Correlation: 0.86299 with p-value: 0.0 , Concordance Index: 0.86415\n",
      "Training at Epoch 70 iteration 0 with loss 0.18965. Total time 3.14861 hours\n",
      "Training at Epoch 70 iteration 100 with loss 0.16830. Total time 3.16055 hours\n",
      "Training at Epoch 70 iteration 200 with loss 0.15500. Total time 3.17222 hours\n",
      "Training at Epoch 70 iteration 300 with loss 0.16762. Total time 3.18416 hours\n",
      "Validation at Epoch 70 , MSE: 0.21828 , Pearson Correlation: 0.85683 with p-value: 0.0 , Concordance Index: 0.86299\n",
      "Training at Epoch 71 iteration 0 with loss 0.22375. Total time 3.19222 hours\n",
      "Training at Epoch 71 iteration 100 with loss 0.16120. Total time 3.20416 hours\n",
      "Training at Epoch 71 iteration 200 with loss 0.16082. Total time 3.21583 hours\n",
      "Training at Epoch 71 iteration 300 with loss 0.16883. Total time 3.2275 hours\n",
      "Validation at Epoch 71 , MSE: 0.18069 , Pearson Correlation: 0.86215 with p-value: 0.0 , Concordance Index: 0.86735\n",
      "Training at Epoch 72 iteration 0 with loss 0.16075. Total time 3.23555 hours\n",
      "Training at Epoch 72 iteration 100 with loss 0.19785. Total time 3.2475 hours\n",
      "Training at Epoch 72 iteration 200 with loss 0.14560. Total time 3.25944 hours\n",
      "Training at Epoch 72 iteration 300 with loss 0.19708. Total time 3.27111 hours\n",
      "Validation at Epoch 72 , MSE: 0.18420 , Pearson Correlation: 0.86302 with p-value: 0.0 , Concordance Index: 0.86707\n",
      "Training at Epoch 73 iteration 0 with loss 0.14017. Total time 3.27916 hours\n",
      "Training at Epoch 73 iteration 100 with loss 0.12973. Total time 3.29111 hours\n",
      "Training at Epoch 73 iteration 200 with loss 0.18889. Total time 3.30277 hours\n",
      "Training at Epoch 73 iteration 300 with loss 0.14459. Total time 3.31472 hours\n",
      "Validation at Epoch 73 , MSE: 0.18863 , Pearson Correlation: 0.86460 with p-value: 0.0 , Concordance Index: 0.86732\n",
      "Training at Epoch 74 iteration 0 with loss 0.16710. Total time 3.32277 hours\n",
      "Training at Epoch 74 iteration 100 with loss 0.18455. Total time 3.33472 hours\n",
      "Training at Epoch 74 iteration 200 with loss 0.14543. Total time 3.34638 hours\n",
      "Training at Epoch 74 iteration 300 with loss 0.17408. Total time 3.35833 hours\n",
      "Validation at Epoch 74 , MSE: 0.18271 , Pearson Correlation: 0.86097 with p-value: 0.0 , Concordance Index: 0.86545\n",
      "Training at Epoch 75 iteration 0 with loss 0.14157. Total time 3.36638 hours\n",
      "Training at Epoch 75 iteration 100 with loss 0.15643. Total time 3.37833 hours\n",
      "Training at Epoch 75 iteration 200 with loss 0.12946. Total time 3.39 hours\n",
      "Training at Epoch 75 iteration 300 with loss 0.20555. Total time 3.40166 hours\n",
      "Validation at Epoch 75 , MSE: 0.17867 , Pearson Correlation: 0.86331 with p-value: 0.0 , Concordance Index: 0.86893\n",
      "Training at Epoch 76 iteration 0 with loss 0.15245. Total time 3.40972 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 76 iteration 100 with loss 0.12196. Total time 3.42166 hours\n",
      "Training at Epoch 76 iteration 200 with loss 0.16590. Total time 3.43361 hours\n",
      "Training at Epoch 76 iteration 300 with loss 0.17274. Total time 3.44527 hours\n",
      "Validation at Epoch 76 , MSE: 0.20689 , Pearson Correlation: 0.85975 with p-value: 0.0 , Concordance Index: 0.86728\n",
      "Training at Epoch 77 iteration 0 with loss 0.16736. Total time 3.45333 hours\n",
      "Training at Epoch 77 iteration 100 with loss 0.13124. Total time 3.46527 hours\n",
      "Training at Epoch 77 iteration 200 with loss 0.17928. Total time 3.47694 hours\n",
      "Training at Epoch 77 iteration 300 with loss 0.17055. Total time 3.48888 hours\n",
      "Validation at Epoch 77 , MSE: 0.19255 , Pearson Correlation: 0.85973 with p-value: 0.0 , Concordance Index: 0.86627\n",
      "Training at Epoch 78 iteration 0 with loss 0.14225. Total time 3.49694 hours\n",
      "Training at Epoch 78 iteration 100 with loss 0.13786. Total time 3.50888 hours\n",
      "Training at Epoch 78 iteration 200 with loss 0.12124. Total time 3.52055 hours\n",
      "Training at Epoch 78 iteration 300 with loss 0.16430. Total time 3.5325 hours\n",
      "Validation at Epoch 78 , MSE: 0.17880 , Pearson Correlation: 0.86580 with p-value: 0.0 , Concordance Index: 0.86779\n",
      "Training at Epoch 79 iteration 0 with loss 0.18674. Total time 3.54055 hours\n",
      "Training at Epoch 79 iteration 100 with loss 0.12423. Total time 3.5525 hours\n",
      "Training at Epoch 79 iteration 200 with loss 0.13174. Total time 3.56416 hours\n",
      "Training at Epoch 79 iteration 300 with loss 0.13720. Total time 3.57583 hours\n",
      "Validation at Epoch 79 , MSE: 0.17881 , Pearson Correlation: 0.86698 with p-value: 0.0 , Concordance Index: 0.87020\n",
      "Training at Epoch 80 iteration 0 with loss 0.15330. Total time 3.58388 hours\n",
      "Training at Epoch 80 iteration 100 with loss 0.17597. Total time 3.59583 hours\n",
      "Training at Epoch 80 iteration 200 with loss 0.15634. Total time 3.6075 hours\n",
      "Training at Epoch 80 iteration 300 with loss 0.13726. Total time 3.61916 hours\n",
      "Validation at Epoch 80 , MSE: 0.17744 , Pearson Correlation: 0.86484 with p-value: 0.0 , Concordance Index: 0.86951\n",
      "Training at Epoch 81 iteration 0 with loss 0.13845. Total time 3.62722 hours\n",
      "Training at Epoch 81 iteration 100 with loss 0.16346. Total time 3.63916 hours\n",
      "Training at Epoch 81 iteration 200 with loss 0.11829. Total time 3.65083 hours\n",
      "Training at Epoch 81 iteration 300 with loss 0.11538. Total time 3.6625 hours\n",
      "Validation at Epoch 81 , MSE: 0.18200 , Pearson Correlation: 0.86503 with p-value: 0.0 , Concordance Index: 0.87245\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 80 Testing MSE: 0.24533715540339573 , Pearson Correlation: 0.8155933811326014 with p-value: 0.0 , Concordance Index: 0.8137660299476223\n",
      "Training at Epoch 82 iteration 0 with loss 0.15895. Total time 3.68055 hours\n",
      "Training at Epoch 82 iteration 100 with loss 0.15150. Total time 3.6925 hours\n",
      "Training at Epoch 82 iteration 200 with loss 0.16094. Total time 3.70416 hours\n",
      "Training at Epoch 82 iteration 300 with loss 0.13124. Total time 3.71583 hours\n",
      "Validation at Epoch 82 , MSE: 0.17556 , Pearson Correlation: 0.86562 with p-value: 0.0 , Concordance Index: 0.87243\n",
      "Training at Epoch 83 iteration 0 with loss 0.16310. Total time 3.72361 hours\n",
      "Training at Epoch 83 iteration 100 with loss 0.15679. Total time 3.73555 hours\n",
      "Training at Epoch 83 iteration 200 with loss 0.14013. Total time 3.7475 hours\n",
      "Training at Epoch 83 iteration 300 with loss 0.11431. Total time 3.75916 hours\n",
      "Validation at Epoch 83 , MSE: 0.18084 , Pearson Correlation: 0.86246 with p-value: 0.0 , Concordance Index: 0.86982\n",
      "Training at Epoch 84 iteration 0 with loss 0.12089. Total time 3.76722 hours\n",
      "Training at Epoch 84 iteration 100 with loss 0.10503. Total time 3.77888 hours\n",
      "Training at Epoch 84 iteration 200 with loss 0.11298. Total time 3.79027 hours\n",
      "Training at Epoch 84 iteration 300 with loss 0.12795. Total time 3.80166 hours\n",
      "Validation at Epoch 84 , MSE: 0.18564 , Pearson Correlation: 0.86591 with p-value: 0.0 , Concordance Index: 0.87248\n",
      "Training at Epoch 85 iteration 0 with loss 0.15686. Total time 3.80944 hours\n",
      "Training at Epoch 85 iteration 100 with loss 0.12707. Total time 3.82083 hours\n",
      "Training at Epoch 85 iteration 200 with loss 0.16101. Total time 3.83222 hours\n",
      "Training at Epoch 85 iteration 300 with loss 0.15632. Total time 3.84361 hours\n",
      "Validation at Epoch 85 , MSE: 0.17762 , Pearson Correlation: 0.86645 with p-value: 0.0 , Concordance Index: 0.87308\n",
      "Training at Epoch 86 iteration 0 with loss 0.12930. Total time 3.85138 hours\n",
      "Training at Epoch 86 iteration 100 with loss 0.09491. Total time 3.86305 hours\n",
      "Training at Epoch 86 iteration 200 with loss 0.15113. Total time 3.87444 hours\n",
      "Training at Epoch 86 iteration 300 with loss 0.12986. Total time 3.88583 hours\n",
      "Validation at Epoch 86 , MSE: 0.18065 , Pearson Correlation: 0.86354 with p-value: 0.0 , Concordance Index: 0.87188\n",
      "Training at Epoch 87 iteration 0 with loss 0.13694. Total time 3.89361 hours\n",
      "Training at Epoch 87 iteration 100 with loss 0.09142. Total time 3.90527 hours\n",
      "Training at Epoch 87 iteration 200 with loss 0.13401. Total time 3.91638 hours\n",
      "Training at Epoch 87 iteration 300 with loss 0.15165. Total time 3.92777 hours\n",
      "Validation at Epoch 87 , MSE: 0.18263 , Pearson Correlation: 0.86180 with p-value: 0.0 , Concordance Index: 0.87272\n",
      "Training at Epoch 88 iteration 0 with loss 0.13543. Total time 3.93555 hours\n",
      "Training at Epoch 88 iteration 100 with loss 0.11704. Total time 3.94722 hours\n",
      "Training at Epoch 88 iteration 200 with loss 0.12441. Total time 3.95861 hours\n",
      "Training at Epoch 88 iteration 300 with loss 0.16804. Total time 3.97 hours\n",
      "Validation at Epoch 88 , MSE: 0.18203 , Pearson Correlation: 0.86359 with p-value: 0.0 , Concordance Index: 0.87126\n",
      "Training at Epoch 89 iteration 0 with loss 0.15543. Total time 3.97777 hours\n",
      "Training at Epoch 89 iteration 100 with loss 0.16162. Total time 3.98916 hours\n",
      "Training at Epoch 89 iteration 200 with loss 0.11168. Total time 4.00055 hours\n",
      "Training at Epoch 89 iteration 300 with loss 0.11887. Total time 4.01194 hours\n",
      "Validation at Epoch 89 , MSE: 0.17910 , Pearson Correlation: 0.86715 with p-value: 0.0 , Concordance Index: 0.87593\n",
      "Training at Epoch 90 iteration 0 with loss 0.12650. Total time 4.01972 hours\n",
      "Training at Epoch 90 iteration 100 with loss 0.13617. Total time 4.03138 hours\n",
      "Training at Epoch 90 iteration 200 with loss 0.12831. Total time 4.04305 hours\n",
      "Training at Epoch 90 iteration 300 with loss 0.13613. Total time 4.05416 hours\n",
      "Validation at Epoch 90 , MSE: 0.17568 , Pearson Correlation: 0.86770 with p-value: 0.0 , Concordance Index: 0.87579\n",
      "Training at Epoch 91 iteration 0 with loss 0.14558. Total time 4.06194 hours\n",
      "Training at Epoch 91 iteration 100 with loss 0.12718. Total time 4.07361 hours\n",
      "Training at Epoch 91 iteration 200 with loss 0.14653. Total time 4.085 hours\n",
      "Training at Epoch 91 iteration 300 with loss 0.15898. Total time 4.09666 hours\n",
      "Validation at Epoch 91 , MSE: 0.18311 , Pearson Correlation: 0.86432 with p-value: 0.0 , Concordance Index: 0.87189\n",
      "Training at Epoch 92 iteration 0 with loss 0.11132. Total time 4.10472 hours\n",
      "Training at Epoch 92 iteration 100 with loss 0.14319. Total time 4.11694 hours\n",
      "Training at Epoch 92 iteration 200 with loss 0.16148. Total time 4.12861 hours\n",
      "Training at Epoch 92 iteration 300 with loss 0.09502. Total time 4.14 hours\n",
      "Validation at Epoch 92 , MSE: 0.17329 , Pearson Correlation: 0.86824 with p-value: 0.0 , Concordance Index: 0.87523\n",
      "Training at Epoch 93 iteration 0 with loss 0.09090. Total time 4.14777 hours\n",
      "Training at Epoch 93 iteration 100 with loss 0.12590. Total time 4.15944 hours\n",
      "Training at Epoch 93 iteration 200 with loss 0.13861. Total time 4.17055 hours\n",
      "Training at Epoch 93 iteration 300 with loss 0.14740. Total time 4.18194 hours\n",
      "Validation at Epoch 93 , MSE: 0.17565 , Pearson Correlation: 0.86756 with p-value: 0.0 , Concordance Index: 0.87290\n",
      "Training at Epoch 94 iteration 0 with loss 0.11134. Total time 4.18972 hours\n",
      "Training at Epoch 94 iteration 100 with loss 0.11998. Total time 4.20138 hours\n",
      "Training at Epoch 94 iteration 200 with loss 0.14055. Total time 4.2125 hours\n",
      "Training at Epoch 94 iteration 300 with loss 0.13263. Total time 4.22388 hours\n",
      "Validation at Epoch 94 , MSE: 0.17406 , Pearson Correlation: 0.86857 with p-value: 0.0 , Concordance Index: 0.87464\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 95 iteration 0 with loss 0.12900. Total time 4.23166 hours\n",
      "Training at Epoch 95 iteration 100 with loss 0.11716. Total time 4.24333 hours\n",
      "Training at Epoch 95 iteration 200 with loss 0.12244. Total time 4.25472 hours\n",
      "Training at Epoch 95 iteration 300 with loss 0.11469. Total time 4.26583 hours\n",
      "Validation at Epoch 95 , MSE: 0.17888 , Pearson Correlation: 0.86521 with p-value: 0.0 , Concordance Index: 0.87542\n",
      "Training at Epoch 96 iteration 0 with loss 0.10493. Total time 4.27361 hours\n",
      "Training at Epoch 96 iteration 100 with loss 0.10974. Total time 4.28527 hours\n",
      "Training at Epoch 96 iteration 200 with loss 0.11502. Total time 4.29666 hours\n",
      "Training at Epoch 96 iteration 300 with loss 0.09847. Total time 4.30777 hours\n",
      "Validation at Epoch 96 , MSE: 0.18838 , Pearson Correlation: 0.86473 with p-value: 0.0 , Concordance Index: 0.87330\n",
      "Training at Epoch 97 iteration 0 with loss 0.10808. Total time 4.31555 hours\n",
      "Training at Epoch 97 iteration 100 with loss 0.13330. Total time 4.32722 hours\n",
      "Training at Epoch 97 iteration 200 with loss 0.11684. Total time 4.33861 hours\n",
      "Training at Epoch 97 iteration 300 with loss 0.17291. Total time 4.34972 hours\n",
      "Validation at Epoch 97 , MSE: 0.18559 , Pearson Correlation: 0.86561 with p-value: 0.0 , Concordance Index: 0.87599\n",
      "Training at Epoch 98 iteration 0 with loss 0.11033. Total time 4.3575 hours\n",
      "Training at Epoch 98 iteration 100 with loss 0.11932. Total time 4.36916 hours\n",
      "Training at Epoch 98 iteration 200 with loss 0.10733. Total time 4.38055 hours\n",
      "Training at Epoch 98 iteration 300 with loss 0.10540. Total time 4.39166 hours\n",
      "Validation at Epoch 98 , MSE: 0.18201 , Pearson Correlation: 0.86584 with p-value: 0.0 , Concordance Index: 0.87607\n",
      "Training at Epoch 99 iteration 0 with loss 0.10770. Total time 4.39944 hours\n",
      "Training at Epoch 99 iteration 100 with loss 0.11585. Total time 4.41111 hours\n",
      "Training at Epoch 99 iteration 200 with loss 0.10617. Total time 4.4225 hours\n",
      "Training at Epoch 99 iteration 300 with loss 0.13496. Total time 4.43361 hours\n",
      "Validation at Epoch 99 , MSE: 0.17638 , Pearson Correlation: 0.86812 with p-value: 0.0 , Concordance Index: 0.87554\n",
      "Training at Epoch 100 iteration 0 with loss 0.12425. Total time 4.44138 hours\n",
      "Training at Epoch 100 iteration 100 with loss 0.11918. Total time 4.45305 hours\n",
      "Training at Epoch 100 iteration 200 with loss 0.11694. Total time 4.46444 hours\n",
      "Training at Epoch 100 iteration 300 with loss 0.17253. Total time 4.47583 hours\n",
      "Validation at Epoch 100 , MSE: 0.19185 , Pearson Correlation: 0.85359 with p-value: 0.0 , Concordance Index: 0.87448\n",
      "--- Go for Testing ---\n",
      "Testing MSE: 0.23462039243424343 , Pearson Correlation: 0.8216882710086643 with p-value: 0.0 , Concordance Index: 0.819920005046269\n",
      "--- Training Finished ---\n"
     ]
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYoAAAELCAYAAADHksFtAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RV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z+jIv5fpGLw/Ii4cILvPYN0BvF0EZH0alLTz/1l+9XKYZyIeFzScuANkhZFxJb8nnOBlwL/d4J5mtXFhcJ61XrSX+InSFoJPA7cHxEPS/o/wLmS+kgzuj1KuorpFcAPI+Libbz3NcDZwNckfZXUN/E+4NcV+/08P58p6UJSP8bKGvdhvI901dO3JX0R2JV0pdWjlOaUNmsJd2ZbT4o0H/M/kNr/v0+a7vPv8rYvAceQOp6/QSoWHyT9YbWijve+FngHcDjwbdLMcW8mzW5Wvt+dwKJ83B/lHP6ixnteQ7pHY3fgMtI0m3cBL4s8r7pZq3iGOzMzK+QzCjMzK+RCYWZmhVwozMyskAuFmZkVcqEwM7NCLhRmZlbIhcLMzAq5UJiZWaH/Dz7K1Dd9Oi3gAAAAAElFTkSuQmCC\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "drug_encoding = 'Morgan'\n",
    "target_encoding = 'CNN'\n",
    "train, val, test = data_process(X_drug, X_target, y, \n",
    "                                drug_encoding, target_encoding, \n",
    "                                split_method='random',frac=[0.7,0.1,0.2], random_seed = 5)\n",
    "\n",
    "# use the parameters setting provided in the paper: https://arxiv.org/abs/1801.10193\n",
    "config = generate_config(drug_encoding = drug_encoding, \n",
    "                         target_encoding = target_encoding, \n",
    "                         cls_hidden_dims = [1024,1024,512], \n",
    "                         train_epoch = 100, \n",
    "                         LR = 0.001, \n",
    "                         batch_size = 256,\n",
    "                         cnn_target_filters = [32,64,96],\n",
    "                         cnn_target_kernels = [4,8,12]\n",
    "                        )\n",
    "model = models.model_initialize(**config)\n",
    "model.train(train, val, test)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "in total: 118254 drug-target pairs\n",
      "encoding drug...\n",
      "unique drugs: 2068\n",
      "drug encoding finished...\n",
      "encoding protein...\n",
      "unique target sequence: 229\n",
      "-- Encoding AAC takes time. Time Reference: 24s for ~100 sequences in a CPU. Calculate your time by the unique target sequence #, instead of the entire dataset.\n",
      "protein encoding finished...\n",
      "splitting dataset...\n",
      "Done.\n",
      "Let's use 1 GPU!\n",
      "--- Data Preparation ---\n",
      "--- Go for Training ---\n",
      "Training at Epoch 1 iteration 0 with loss 140.759. Total time 0.0 hours\n",
      "Training at Epoch 1 iteration 100 with loss 0.67908. Total time 0.00416 hours\n",
      "Training at Epoch 1 iteration 200 with loss 0.76675. Total time 0.00805 hours\n",
      "Training at Epoch 1 iteration 300 with loss 0.58949. Total time 0.01194 hours\n",
      "Validation at Epoch 1 , MSE: 0.42818 , Pearson Correlation: 0.62725 with p-value: 0.0 , Concordance Index: 0.74594\n",
      "Training at Epoch 2 iteration 0 with loss 0.57595. Total time 0.015 hours\n",
      "Training at Epoch 2 iteration 100 with loss 0.57832. Total time 0.01916 hours\n",
      "Training at Epoch 2 iteration 200 with loss 0.65147. Total time 0.02305 hours\n",
      "Training at Epoch 2 iteration 300 with loss 0.72585. Total time 0.02694 hours\n",
      "Validation at Epoch 2 , MSE: 0.40921 , Pearson Correlation: 0.65347 with p-value: 0.0 , Concordance Index: 0.75800\n",
      "Training at Epoch 3 iteration 0 with loss 0.58072. Total time 0.03 hours\n",
      "Training at Epoch 3 iteration 100 with loss 0.48140. Total time 0.03416 hours\n",
      "Training at Epoch 3 iteration 200 with loss 0.71739. Total time 0.03805 hours\n",
      "Training at Epoch 3 iteration 300 with loss 0.58804. Total time 0.04194 hours\n",
      "Validation at Epoch 3 , MSE: 0.59158 , Pearson Correlation: 0.65673 with p-value: 0.0 , Concordance Index: 0.76103\n",
      "Training at Epoch 4 iteration 0 with loss 0.83378. Total time 0.045 hours\n",
      "Training at Epoch 4 iteration 100 with loss 0.69391. Total time 0.04916 hours\n",
      "Training at Epoch 4 iteration 200 with loss 0.62592. Total time 0.05305 hours\n",
      "Training at Epoch 4 iteration 300 with loss 0.69463. Total time 0.05694 hours\n",
      "Validation at Epoch 4 , MSE: 0.38720 , Pearson Correlation: 0.67102 with p-value: 0.0 , Concordance Index: 0.77167\n",
      "Training at Epoch 5 iteration 0 with loss 0.54357. Total time 0.06 hours\n",
      "Training at Epoch 5 iteration 100 with loss 0.99213. Total time 0.06416 hours\n",
      "Training at Epoch 5 iteration 200 with loss 0.53308. Total time 0.06805 hours\n",
      "Training at Epoch 5 iteration 300 with loss 0.52645. Total time 0.07194 hours\n",
      "Validation at Epoch 5 , MSE: 0.61103 , Pearson Correlation: 0.67755 with p-value: 0.0 , Concordance Index: 0.76933\n",
      "Training at Epoch 6 iteration 0 with loss 0.70601. Total time 0.075 hours\n",
      "Training at Epoch 6 iteration 100 with loss 0.53879. Total time 0.07916 hours\n",
      "Training at Epoch 6 iteration 200 with loss 0.52016. Total time 0.08305 hours\n",
      "Training at Epoch 6 iteration 300 with loss 0.44822. Total time 0.08722 hours\n",
      "Validation at Epoch 6 , MSE: 0.39372 , Pearson Correlation: 0.68472 with p-value: 0.0 , Concordance Index: 0.77727\n",
      "Training at Epoch 7 iteration 0 with loss 0.45083. Total time 0.09 hours\n",
      "Training at Epoch 7 iteration 100 with loss 0.53794. Total time 0.09416 hours\n",
      "Training at Epoch 7 iteration 200 with loss 0.55026. Total time 0.09805 hours\n",
      "Training at Epoch 7 iteration 300 with loss 0.34570. Total time 0.10194 hours\n",
      "Validation at Epoch 7 , MSE: 0.35034 , Pearson Correlation: 0.71420 with p-value: 0.0 , Concordance Index: 0.77792\n",
      "Training at Epoch 8 iteration 0 with loss 0.40434. Total time 0.105 hours\n",
      "Training at Epoch 8 iteration 100 with loss 0.54650. Total time 0.10916 hours\n",
      "Training at Epoch 8 iteration 200 with loss 0.34926. Total time 0.11305 hours\n",
      "Training at Epoch 8 iteration 300 with loss 0.63447. Total time 0.11722 hours\n",
      "Validation at Epoch 8 , MSE: 0.32807 , Pearson Correlation: 0.73410 with p-value: 0.0 , Concordance Index: 0.79034\n",
      "Training at Epoch 9 iteration 0 with loss 0.34411. Total time 0.12 hours\n",
      "Training at Epoch 9 iteration 100 with loss 0.41103. Total time 0.12416 hours\n",
      "Training at Epoch 9 iteration 200 with loss 0.40635. Total time 0.12805 hours\n",
      "Training at Epoch 9 iteration 300 with loss 0.38424. Total time 0.13222 hours\n",
      "Validation at Epoch 9 , MSE: 0.33726 , Pearson Correlation: 0.73976 with p-value: 0.0 , Concordance Index: 0.78748\n",
      "Training at Epoch 10 iteration 0 with loss 0.45505. Total time 0.135 hours\n",
      "Training at Epoch 10 iteration 100 with loss 0.30563. Total time 0.13916 hours\n",
      "Training at Epoch 10 iteration 200 with loss 0.32589. Total time 0.14305 hours\n",
      "Training at Epoch 10 iteration 300 with loss 0.46863. Total time 0.14722 hours\n",
      "Validation at Epoch 10 , MSE: 0.32595 , Pearson Correlation: 0.75243 with p-value: 0.0 , Concordance Index: 0.79882\n",
      "Training at Epoch 11 iteration 0 with loss 0.36238. Total time 0.15027 hours\n",
      "Training at Epoch 11 iteration 100 with loss 0.41061. Total time 0.15416 hours\n",
      "Training at Epoch 11 iteration 200 with loss 0.43460. Total time 0.15805 hours\n",
      "Training at Epoch 11 iteration 300 with loss 0.33878. Total time 0.16222 hours\n",
      "Validation at Epoch 11 , MSE: 0.32080 , Pearson Correlation: 0.74826 with p-value: 0.0 , Concordance Index: 0.79753\n",
      "Training at Epoch 12 iteration 0 with loss 0.33808. Total time 0.16527 hours\n",
      "Training at Epoch 12 iteration 100 with loss 0.60620. Total time 0.16916 hours\n",
      "Training at Epoch 12 iteration 200 with loss 0.40100. Total time 0.17333 hours\n",
      "Training at Epoch 12 iteration 300 with loss 0.45535. Total time 0.17722 hours\n",
      "Validation at Epoch 12 , MSE: 0.44060 , Pearson Correlation: 0.76114 with p-value: 0.0 , Concordance Index: 0.80574\n",
      "Training at Epoch 13 iteration 0 with loss 0.56548. Total time 0.18027 hours\n",
      "Training at Epoch 13 iteration 100 with loss 0.49113. Total time 0.18416 hours\n",
      "Training at Epoch 13 iteration 200 with loss 0.32572. Total time 0.18833 hours\n",
      "Training at Epoch 13 iteration 300 with loss 0.38105. Total time 0.19222 hours\n",
      "Validation at Epoch 13 , MSE: 0.30999 , Pearson Correlation: 0.76350 with p-value: 0.0 , Concordance Index: 0.80859\n",
      "Training at Epoch 14 iteration 0 with loss 0.40249. Total time 0.19527 hours\n",
      "Training at Epoch 14 iteration 100 with loss 0.42603. Total time 0.19916 hours\n",
      "Training at Epoch 14 iteration 200 with loss 0.37490. Total time 0.20333 hours\n",
      "Training at Epoch 14 iteration 300 with loss 0.42696. Total time 0.20722 hours\n",
      "Validation at Epoch 14 , MSE: 0.29631 , Pearson Correlation: 0.76884 with p-value: 0.0 , Concordance Index: 0.80626\n",
      "Training at Epoch 15 iteration 0 with loss 0.34225. Total time 0.21027 hours\n",
      "Training at Epoch 15 iteration 100 with loss 0.52329. Total time 0.21416 hours\n",
      "Training at Epoch 15 iteration 200 with loss 0.43394. Total time 0.21805 hours\n",
      "Training at Epoch 15 iteration 300 with loss 0.85620. Total time 0.22222 hours\n",
      "Validation at Epoch 15 , MSE: 0.35402 , Pearson Correlation: 0.76755 with p-value: 0.0 , Concordance Index: 0.80518\n",
      "Training at Epoch 16 iteration 0 with loss 0.51744. Total time 0.225 hours\n",
      "Training at Epoch 16 iteration 100 with loss 0.49913. Total time 0.22916 hours\n",
      "Training at Epoch 16 iteration 200 with loss 0.44559. Total time 0.23305 hours\n",
      "Training at Epoch 16 iteration 300 with loss 0.42005. Total time 0.23694 hours\n",
      "Validation at Epoch 16 , MSE: 0.32841 , Pearson Correlation: 0.76033 with p-value: 0.0 , Concordance Index: 0.80058\n",
      "Training at Epoch 17 iteration 0 with loss 0.40659. Total time 0.24 hours\n",
      "Training at Epoch 17 iteration 100 with loss 0.47374. Total time 0.24416 hours\n",
      "Training at Epoch 17 iteration 200 with loss 0.37378. Total time 0.24805 hours\n",
      "Training at Epoch 17 iteration 300 with loss 0.50670. Total time 0.25194 hours\n",
      "Validation at Epoch 17 , MSE: 0.36794 , Pearson Correlation: 0.77720 with p-value: 0.0 , Concordance Index: 0.81437\n",
      "Training at Epoch 18 iteration 0 with loss 0.45443. Total time 0.255 hours\n",
      "Training at Epoch 18 iteration 100 with loss 0.39567. Total time 0.25916 hours\n",
      "Training at Epoch 18 iteration 200 with loss 0.40419. Total time 0.26305 hours\n",
      "Training at Epoch 18 iteration 300 with loss 0.63999. Total time 0.26694 hours\n",
      "Validation at Epoch 18 , MSE: 0.29888 , Pearson Correlation: 0.77659 with p-value: 0.0 , Concordance Index: 0.80930\n",
      "Training at Epoch 19 iteration 0 with loss 0.40331. Total time 0.27 hours\n",
      "Training at Epoch 19 iteration 100 with loss 0.51683. Total time 0.27416 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 19 iteration 200 with loss 0.49077. Total time 0.27805 hours\n",
      "Training at Epoch 19 iteration 300 with loss 0.35603. Total time 0.28194 hours\n",
      "Validation at Epoch 19 , MSE: 0.31123 , Pearson Correlation: 0.77376 with p-value: 0.0 , Concordance Index: 0.80505\n",
      "Training at Epoch 20 iteration 0 with loss 0.73146. Total time 0.285 hours\n",
      "Training at Epoch 20 iteration 100 with loss 0.36238. Total time 0.28916 hours\n",
      "Training at Epoch 20 iteration 200 with loss 0.46631. Total time 0.29305 hours\n",
      "Training at Epoch 20 iteration 300 with loss 0.30220. Total time 0.29722 hours\n",
      "Validation at Epoch 20 , MSE: 0.34033 , Pearson Correlation: 0.78136 with p-value: 0.0 , Concordance Index: 0.81206\n",
      "Training at Epoch 21 iteration 0 with loss 0.39761. Total time 0.3 hours\n",
      "Training at Epoch 21 iteration 100 with loss 0.27025. Total time 0.30416 hours\n",
      "Training at Epoch 21 iteration 200 with loss 0.41031. Total time 0.30805 hours\n",
      "Training at Epoch 21 iteration 300 with loss 0.35194. Total time 0.31222 hours\n",
      "Validation at Epoch 21 , MSE: 0.30164 , Pearson Correlation: 0.77721 with p-value: 0.0 , Concordance Index: 0.81321\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 20 Testing MSE: 0.4138392100384221 , Pearson Correlation: 0.6965158025213765 with p-value: 0.0 , Concordance Index: 0.7430178850914446\n",
      "Training at Epoch 22 iteration 0 with loss 0.38414. Total time 0.31916 hours\n",
      "Training at Epoch 22 iteration 100 with loss 0.44849. Total time 0.32305 hours\n",
      "Training at Epoch 22 iteration 200 with loss 0.42007. Total time 0.32694 hours\n",
      "Training at Epoch 22 iteration 300 with loss 0.40836. Total time 0.33111 hours\n",
      "Validation at Epoch 22 , MSE: 0.26698 , Pearson Correlation: 0.78809 with p-value: 0.0 , Concordance Index: 0.81542\n",
      "Training at Epoch 23 iteration 0 with loss 0.29771. Total time 0.33388 hours\n",
      "Training at Epoch 23 iteration 100 with loss 0.52538. Total time 0.33805 hours\n",
      "Training at Epoch 23 iteration 200 with loss 0.52335. Total time 0.34194 hours\n",
      "Training at Epoch 23 iteration 300 with loss 0.40210. Total time 0.34583 hours\n",
      "Validation at Epoch 23 , MSE: 0.25975 , Pearson Correlation: 0.79593 with p-value: 0.0 , Concordance Index: 0.81764\n",
      "Training at Epoch 24 iteration 0 with loss 0.27067. Total time 0.34888 hours\n",
      "Training at Epoch 24 iteration 100 with loss 0.42601. Total time 0.35305 hours\n",
      "Training at Epoch 24 iteration 200 with loss 0.34592. Total time 0.35694 hours\n",
      "Training at Epoch 24 iteration 300 with loss 0.36888. Total time 0.36083 hours\n",
      "Validation at Epoch 24 , MSE: 0.28198 , Pearson Correlation: 0.79456 with p-value: 0.0 , Concordance Index: 0.81925\n",
      "Training at Epoch 25 iteration 0 with loss 0.29940. Total time 0.36388 hours\n",
      "Training at Epoch 25 iteration 100 with loss 0.39207. Total time 0.36805 hours\n",
      "Training at Epoch 25 iteration 200 with loss 0.33077. Total time 0.37194 hours\n",
      "Training at Epoch 25 iteration 300 with loss 0.26128. Total time 0.37583 hours\n",
      "Validation at Epoch 25 , MSE: 0.26030 , Pearson Correlation: 0.79416 with p-value: 0.0 , Concordance Index: 0.81694\n",
      "Training at Epoch 26 iteration 0 with loss 0.25486. Total time 0.37888 hours\n",
      "Training at Epoch 26 iteration 100 with loss 0.44045. Total time 0.38305 hours\n",
      "Training at Epoch 26 iteration 200 with loss 0.29489. Total time 0.38722 hours\n",
      "Training at Epoch 26 iteration 300 with loss 0.33439. Total time 0.39111 hours\n",
      "Validation at Epoch 26 , MSE: 0.25679 , Pearson Correlation: 0.79773 with p-value: 0.0 , Concordance Index: 0.81937\n",
      "Training at Epoch 27 iteration 0 with loss 0.28670. Total time 0.39416 hours\n",
      "Training at Epoch 27 iteration 100 with loss 0.30750. Total time 0.39805 hours\n",
      "Training at Epoch 27 iteration 200 with loss 0.35104. Total time 0.40222 hours\n",
      "Training at Epoch 27 iteration 300 with loss 0.33765. Total time 0.40611 hours\n",
      "Validation at Epoch 27 , MSE: 0.27668 , Pearson Correlation: 0.80130 with p-value: 0.0 , Concordance Index: 0.82071\n",
      "Training at Epoch 28 iteration 0 with loss 0.39347. Total time 0.40916 hours\n",
      "Training at Epoch 28 iteration 100 with loss 0.29894. Total time 0.41305 hours\n",
      "Training at Epoch 28 iteration 200 with loss 0.32993. Total time 0.41722 hours\n",
      "Training at Epoch 28 iteration 300 with loss 0.34106. Total time 0.42111 hours\n",
      "Validation at Epoch 28 , MSE: 0.26351 , Pearson Correlation: 0.80003 with p-value: 0.0 , Concordance Index: 0.81952\n",
      "Training at Epoch 29 iteration 0 with loss 0.37361. Total time 0.42416 hours\n",
      "Training at Epoch 29 iteration 100 with loss 0.29225. Total time 0.42805 hours\n",
      "Training at Epoch 29 iteration 200 with loss 0.31307. Total time 0.43222 hours\n",
      "Training at Epoch 29 iteration 300 with loss 0.33603. Total time 0.43611 hours\n",
      "Validation at Epoch 29 , MSE: 0.24779 , Pearson Correlation: 0.80577 with p-value: 0.0 , Concordance Index: 0.82098\n",
      "Training at Epoch 30 iteration 0 with loss 0.33579. Total time 0.43916 hours\n",
      "Training at Epoch 30 iteration 100 with loss 0.28385. Total time 0.44305 hours\n",
      "Training at Epoch 30 iteration 200 with loss 0.22145. Total time 0.44694 hours\n",
      "Training at Epoch 30 iteration 300 with loss 0.29954. Total time 0.45111 hours\n",
      "Validation at Epoch 30 , MSE: 0.24801 , Pearson Correlation: 0.81204 with p-value: 0.0 , Concordance Index: 0.82959\n",
      "Training at Epoch 31 iteration 0 with loss 0.28379. Total time 0.45388 hours\n",
      "Training at Epoch 31 iteration 100 with loss 0.27060. Total time 0.45805 hours\n",
      "Training at Epoch 31 iteration 200 with loss 0.23687. Total time 0.46194 hours\n",
      "Training at Epoch 31 iteration 300 with loss 0.34395. Total time 0.46611 hours\n",
      "Validation at Epoch 31 , MSE: 0.24635 , Pearson Correlation: 0.81351 with p-value: 0.0 , Concordance Index: 0.82579\n",
      "Training at Epoch 32 iteration 0 with loss 0.30350. Total time 0.46888 hours\n",
      "Training at Epoch 32 iteration 100 with loss 0.28629. Total time 0.47305 hours\n",
      "Training at Epoch 32 iteration 200 with loss 0.33989. Total time 0.47694 hours\n",
      "Training at Epoch 32 iteration 300 with loss 0.30088. Total time 0.48111 hours\n",
      "Validation at Epoch 32 , MSE: 0.26249 , Pearson Correlation: 0.81069 with p-value: 0.0 , Concordance Index: 0.82842\n",
      "Training at Epoch 33 iteration 0 with loss 0.32285. Total time 0.48416 hours\n",
      "Training at Epoch 33 iteration 100 with loss 0.36245. Total time 0.48805 hours\n",
      "Training at Epoch 33 iteration 200 with loss 0.27889. Total time 0.49194 hours\n",
      "Training at Epoch 33 iteration 300 with loss 0.27492. Total time 0.49611 hours\n",
      "Validation at Epoch 33 , MSE: 0.23288 , Pearson Correlation: 0.82316 with p-value: 0.0 , Concordance Index: 0.83107\n",
      "Training at Epoch 34 iteration 0 with loss 0.25557. Total time 0.49916 hours\n",
      "Training at Epoch 34 iteration 100 with loss 0.30176. Total time 0.50305 hours\n",
      "Training at Epoch 34 iteration 200 with loss 0.27498. Total time 0.50722 hours\n",
      "Training at Epoch 34 iteration 300 with loss 0.26049. Total time 0.51111 hours\n",
      "Validation at Epoch 34 , MSE: 0.23714 , Pearson Correlation: 0.81649 with p-value: 0.0 , Concordance Index: 0.82880\n",
      "Training at Epoch 35 iteration 0 with loss 0.30173. Total time 0.51416 hours\n",
      "Training at Epoch 35 iteration 100 with loss 0.25788. Total time 0.51805 hours\n",
      "Training at Epoch 35 iteration 200 with loss 0.25274. Total time 0.52222 hours\n",
      "Training at Epoch 35 iteration 300 with loss 0.31567. Total time 0.52611 hours\n",
      "Validation at Epoch 35 , MSE: 0.25656 , Pearson Correlation: 0.81772 with p-value: 0.0 , Concordance Index: 0.83122\n",
      "Training at Epoch 36 iteration 0 with loss 0.28189. Total time 0.52916 hours\n",
      "Training at Epoch 36 iteration 100 with loss 0.32186. Total time 0.53305 hours\n",
      "Training at Epoch 36 iteration 200 with loss 0.27828. Total time 0.53722 hours\n",
      "Training at Epoch 36 iteration 300 with loss 0.27192. Total time 0.54111 hours\n",
      "Validation at Epoch 36 , MSE: 0.30885 , Pearson Correlation: 0.81887 with p-value: 0.0 , Concordance Index: 0.83352\n",
      "Training at Epoch 37 iteration 0 with loss 0.41009. Total time 0.54416 hours\n",
      "Training at Epoch 37 iteration 100 with loss 0.30176. Total time 0.54805 hours\n",
      "Training at Epoch 37 iteration 200 with loss 0.31987. Total time 0.55222 hours\n",
      "Training at Epoch 37 iteration 300 with loss 0.27910. Total time 0.55611 hours\n",
      "Validation at Epoch 37 , MSE: 0.23179 , Pearson Correlation: 0.82757 with p-value: 0.0 , Concordance Index: 0.83680\n",
      "Training at Epoch 38 iteration 0 with loss 0.28483. Total time 0.55916 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 38 iteration 100 with loss 0.23269. Total time 0.56333 hours\n",
      "Training at Epoch 38 iteration 200 with loss 0.36073. Total time 0.56722 hours\n",
      "Training at Epoch 38 iteration 300 with loss 0.29276. Total time 0.57111 hours\n",
      "Validation at Epoch 38 , MSE: 0.22331 , Pearson Correlation: 0.82738 with p-value: 0.0 , Concordance Index: 0.83665\n",
      "Training at Epoch 39 iteration 0 with loss 0.23553. Total time 0.57416 hours\n",
      "Training at Epoch 39 iteration 100 with loss 0.23388. Total time 0.57833 hours\n",
      "Training at Epoch 39 iteration 200 with loss 0.25884. Total time 0.58222 hours\n",
      "Training at Epoch 39 iteration 300 with loss 0.26988. Total time 0.58611 hours\n",
      "Validation at Epoch 39 , MSE: 0.22468 , Pearson Correlation: 0.82686 with p-value: 0.0 , Concordance Index: 0.84003\n",
      "Training at Epoch 40 iteration 0 with loss 0.23697. Total time 0.58916 hours\n",
      "Training at Epoch 40 iteration 100 with loss 0.31099. Total time 0.59333 hours\n",
      "Training at Epoch 40 iteration 200 with loss 0.31330. Total time 0.59722 hours\n",
      "Training at Epoch 40 iteration 300 with loss 0.30192. Total time 0.60111 hours\n",
      "Validation at Epoch 40 , MSE: 0.23855 , Pearson Correlation: 0.82599 with p-value: 0.0 , Concordance Index: 0.83818\n",
      "Training at Epoch 41 iteration 0 with loss 0.25522. Total time 0.60416 hours\n",
      "Training at Epoch 41 iteration 100 with loss 0.25668. Total time 0.60833 hours\n",
      "Training at Epoch 41 iteration 200 with loss 0.30155. Total time 0.61222 hours\n",
      "Training at Epoch 41 iteration 300 with loss 0.27784. Total time 0.61611 hours\n",
      "Validation at Epoch 41 , MSE: 0.29362 , Pearson Correlation: 0.83184 with p-value: 0.0 , Concordance Index: 0.84003\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 40 Testing MSE: 0.3894317041224376 , Pearson Correlation: 0.7664505711303484 with p-value: 0.0 , Concordance Index: 0.7806530730223176\n",
      "Training at Epoch 42 iteration 0 with loss 0.38190. Total time 0.62305 hours\n",
      "Training at Epoch 42 iteration 100 with loss 0.34395. Total time 0.62722 hours\n",
      "Training at Epoch 42 iteration 200 with loss 0.23571. Total time 0.63111 hours\n",
      "Training at Epoch 42 iteration 300 with loss 0.24657. Total time 0.635 hours\n",
      "Validation at Epoch 42 , MSE: 0.22620 , Pearson Correlation: 0.82554 with p-value: 0.0 , Concordance Index: 0.83757\n",
      "Training at Epoch 43 iteration 0 with loss 0.24495. Total time 0.63805 hours\n",
      "Training at Epoch 43 iteration 100 with loss 0.22077. Total time 0.64222 hours\n",
      "Training at Epoch 43 iteration 200 with loss 0.25358. Total time 0.64611 hours\n",
      "Training at Epoch 43 iteration 300 with loss 0.23348. Total time 0.65 hours\n",
      "Validation at Epoch 43 , MSE: 0.25914 , Pearson Correlation: 0.83559 with p-value: 0.0 , Concordance Index: 0.84226\n",
      "Training at Epoch 44 iteration 0 with loss 0.28035. Total time 0.65305 hours\n",
      "Training at Epoch 44 iteration 100 with loss 0.27913. Total time 0.65722 hours\n",
      "Training at Epoch 44 iteration 200 with loss 0.28142. Total time 0.66111 hours\n",
      "Training at Epoch 44 iteration 300 with loss 0.32764. Total time 0.665 hours\n",
      "Validation at Epoch 44 , MSE: 0.22058 , Pearson Correlation: 0.83358 with p-value: 0.0 , Concordance Index: 0.84004\n",
      "Training at Epoch 45 iteration 0 with loss 0.23462. Total time 0.66805 hours\n",
      "Training at Epoch 45 iteration 100 with loss 0.28393. Total time 0.67222 hours\n",
      "Training at Epoch 45 iteration 200 with loss 0.26437. Total time 0.67611 hours\n",
      "Training at Epoch 45 iteration 300 with loss 0.21604. Total time 0.68027 hours\n",
      "Validation at Epoch 45 , MSE: 0.21949 , Pearson Correlation: 0.83062 with p-value: 0.0 , Concordance Index: 0.84227\n",
      "Training at Epoch 46 iteration 0 with loss 0.20979. Total time 0.68305 hours\n",
      "Training at Epoch 46 iteration 100 with loss 0.25467. Total time 0.68722 hours\n",
      "Training at Epoch 46 iteration 200 with loss 0.23904. Total time 0.69111 hours\n",
      "Training at Epoch 46 iteration 300 with loss 0.30234. Total time 0.69527 hours\n",
      "Validation at Epoch 46 , MSE: 0.21378 , Pearson Correlation: 0.84361 with p-value: 0.0 , Concordance Index: 0.85092\n",
      "Training at Epoch 47 iteration 0 with loss 0.23648. Total time 0.69805 hours\n",
      "Training at Epoch 47 iteration 100 with loss 0.28815. Total time 0.70222 hours\n",
      "Training at Epoch 47 iteration 200 with loss 0.21527. Total time 0.70611 hours\n",
      "Training at Epoch 47 iteration 300 with loss 0.23575. Total time 0.71027 hours\n",
      "Validation at Epoch 47 , MSE: 0.21844 , Pearson Correlation: 0.83816 with p-value: 0.0 , Concordance Index: 0.85092\n",
      "Training at Epoch 48 iteration 0 with loss 0.23423. Total time 0.71333 hours\n",
      "Training at Epoch 48 iteration 100 with loss 0.36618. Total time 0.71722 hours\n",
      "Training at Epoch 48 iteration 200 with loss 0.22847. Total time 0.72138 hours\n",
      "Training at Epoch 48 iteration 300 with loss 0.26925. Total time 0.72527 hours\n",
      "Validation at Epoch 48 , MSE: 0.20854 , Pearson Correlation: 0.83911 with p-value: 0.0 , Concordance Index: 0.84935\n",
      "Training at Epoch 49 iteration 0 with loss 0.23284. Total time 0.72833 hours\n",
      "Training at Epoch 49 iteration 100 with loss 0.23274. Total time 0.73222 hours\n",
      "Training at Epoch 49 iteration 200 with loss 0.28760. Total time 0.73638 hours\n",
      "Training at Epoch 49 iteration 300 with loss 0.20647. Total time 0.74027 hours\n",
      "Validation at Epoch 49 , MSE: 0.21117 , Pearson Correlation: 0.84213 with p-value: 0.0 , Concordance Index: 0.85252\n",
      "Training at Epoch 50 iteration 0 with loss 0.23303. Total time 0.74333 hours\n",
      "Training at Epoch 50 iteration 100 with loss 0.22175. Total time 0.74722 hours\n",
      "Training at Epoch 50 iteration 200 with loss 0.24668. Total time 0.75138 hours\n",
      "Training at Epoch 50 iteration 300 with loss 0.21873. Total time 0.75527 hours\n",
      "Validation at Epoch 50 , MSE: 0.20496 , Pearson Correlation: 0.84276 with p-value: 0.0 , Concordance Index: 0.84973\n",
      "Training at Epoch 51 iteration 0 with loss 0.25118. Total time 0.75833 hours\n",
      "Training at Epoch 51 iteration 100 with loss 0.20790. Total time 0.76222 hours\n",
      "Training at Epoch 51 iteration 200 with loss 0.23474. Total time 0.76638 hours\n",
      "Training at Epoch 51 iteration 300 with loss 0.27140. Total time 0.77027 hours\n",
      "Validation at Epoch 51 , MSE: 0.21017 , Pearson Correlation: 0.84101 with p-value: 0.0 , Concordance Index: 0.85172\n",
      "Training at Epoch 52 iteration 0 with loss 0.19421. Total time 0.77333 hours\n",
      "Training at Epoch 52 iteration 100 with loss 0.16304. Total time 0.77722 hours\n",
      "Training at Epoch 52 iteration 200 with loss 0.21213. Total time 0.78138 hours\n",
      "Training at Epoch 52 iteration 300 with loss 0.28384. Total time 0.78527 hours\n",
      "Validation at Epoch 52 , MSE: 0.21856 , Pearson Correlation: 0.84413 with p-value: 0.0 , Concordance Index: 0.85043\n",
      "Training at Epoch 53 iteration 0 with loss 0.16785. Total time 0.78833 hours\n",
      "Training at Epoch 53 iteration 100 with loss 0.27043. Total time 0.79222 hours\n",
      "Training at Epoch 53 iteration 200 with loss 0.23571. Total time 0.79638 hours\n",
      "Training at Epoch 53 iteration 300 with loss 0.19016. Total time 0.80027 hours\n",
      "Validation at Epoch 53 , MSE: 0.22422 , Pearson Correlation: 0.84134 with p-value: 0.0 , Concordance Index: 0.84872\n",
      "Training at Epoch 54 iteration 0 with loss 0.23383. Total time 0.80333 hours\n",
      "Training at Epoch 54 iteration 100 with loss 0.20738. Total time 0.80722 hours\n",
      "Training at Epoch 54 iteration 200 with loss 0.19416. Total time 0.81138 hours\n",
      "Training at Epoch 54 iteration 300 with loss 0.17963. Total time 0.81527 hours\n",
      "Validation at Epoch 54 , MSE: 0.20616 , Pearson Correlation: 0.84161 with p-value: 0.0 , Concordance Index: 0.85505\n",
      "Training at Epoch 55 iteration 0 with loss 0.21286. Total time 0.81833 hours\n",
      "Training at Epoch 55 iteration 100 with loss 0.20172. Total time 0.8225 hours\n",
      "Training at Epoch 55 iteration 200 with loss 0.21900. Total time 0.82638 hours\n",
      "Training at Epoch 55 iteration 300 with loss 0.18042. Total time 0.83027 hours\n",
      "Validation at Epoch 55 , MSE: 0.20118 , Pearson Correlation: 0.84584 with p-value: 0.0 , Concordance Index: 0.85610\n",
      "Training at Epoch 56 iteration 0 with loss 0.19159. Total time 0.83333 hours\n",
      "Training at Epoch 56 iteration 100 with loss 0.19400. Total time 0.8375 hours\n",
      "Training at Epoch 56 iteration 200 with loss 0.26040. Total time 0.84138 hours\n",
      "Training at Epoch 56 iteration 300 with loss 0.23789. Total time 0.84527 hours\n",
      "Validation at Epoch 56 , MSE: 0.20359 , Pearson Correlation: 0.84613 with p-value: 0.0 , Concordance Index: 0.85555\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 57 iteration 0 with loss 0.20018. Total time 0.84833 hours\n",
      "Training at Epoch 57 iteration 100 with loss 0.22129. Total time 0.8525 hours\n",
      "Training at Epoch 57 iteration 200 with loss 0.24597. Total time 0.85638 hours\n",
      "Training at Epoch 57 iteration 300 with loss 0.17409. Total time 0.86027 hours\n",
      "Validation at Epoch 57 , MSE: 0.19880 , Pearson Correlation: 0.85224 with p-value: 0.0 , Concordance Index: 0.85667\n",
      "Training at Epoch 58 iteration 0 with loss 0.17548. Total time 0.86333 hours\n",
      "Training at Epoch 58 iteration 100 with loss 0.20325. Total time 0.8675 hours\n",
      "Training at Epoch 58 iteration 200 with loss 0.18887. Total time 0.87166 hours\n",
      "Training at Epoch 58 iteration 300 with loss 0.17737. Total time 0.87555 hours\n",
      "Validation at Epoch 58 , MSE: 0.20008 , Pearson Correlation: 0.84666 with p-value: 0.0 , Concordance Index: 0.85508\n",
      "Training at Epoch 59 iteration 0 with loss 0.20434. Total time 0.87861 hours\n",
      "Training at Epoch 59 iteration 100 with loss 0.20392. Total time 0.88305 hours\n",
      "Training at Epoch 59 iteration 200 with loss 0.17779. Total time 0.88722 hours\n",
      "Training at Epoch 59 iteration 300 with loss 0.23643. Total time 0.89111 hours\n",
      "Validation at Epoch 59 , MSE: 0.21495 , Pearson Correlation: 0.85492 with p-value: 0.0 , Concordance Index: 0.85771\n",
      "Training at Epoch 60 iteration 0 with loss 0.21778. Total time 0.89444 hours\n",
      "Training at Epoch 60 iteration 100 with loss 0.19128. Total time 0.89861 hours\n",
      "Training at Epoch 60 iteration 200 with loss 0.23567. Total time 0.90277 hours\n",
      "Training at Epoch 60 iteration 300 with loss 0.20882. Total time 0.90666 hours\n",
      "Validation at Epoch 60 , MSE: 0.20134 , Pearson Correlation: 0.85059 with p-value: 0.0 , Concordance Index: 0.85973\n",
      "Training at Epoch 61 iteration 0 with loss 0.19454. Total time 0.90972 hours\n",
      "Training at Epoch 61 iteration 100 with loss 0.19666. Total time 0.91388 hours\n",
      "Training at Epoch 61 iteration 200 with loss 0.19973. Total time 0.91805 hours\n",
      "Training at Epoch 61 iteration 300 with loss 0.25007. Total time 0.92222 hours\n",
      "Validation at Epoch 61 , MSE: 0.19220 , Pearson Correlation: 0.85400 with p-value: 0.0 , Concordance Index: 0.85860\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 60 Testing MSE: 0.2711537484200768 , Pearson Correlation: 0.7966898771253126 with p-value: 0.0 , Concordance Index: 0.8025062669882919\n",
      "Training at Epoch 62 iteration 0 with loss 0.12840. Total time 0.92944 hours\n",
      "Training at Epoch 62 iteration 100 with loss 0.15083. Total time 0.93361 hours\n",
      "Training at Epoch 62 iteration 200 with loss 0.21000. Total time 0.93777 hours\n",
      "Training at Epoch 62 iteration 300 with loss 0.24260. Total time 0.94166 hours\n",
      "Validation at Epoch 62 , MSE: 0.21270 , Pearson Correlation: 0.85211 with p-value: 0.0 , Concordance Index: 0.85709\n",
      "Training at Epoch 63 iteration 0 with loss 0.18705. Total time 0.94472 hours\n",
      "Training at Epoch 63 iteration 100 with loss 0.17220. Total time 0.94888 hours\n",
      "Training at Epoch 63 iteration 200 with loss 0.17833. Total time 0.95305 hours\n",
      "Training at Epoch 63 iteration 300 with loss 0.22657. Total time 0.95722 hours\n",
      "Validation at Epoch 63 , MSE: 0.19387 , Pearson Correlation: 0.85467 with p-value: 0.0 , Concordance Index: 0.85885\n",
      "Training at Epoch 64 iteration 0 with loss 0.18256. Total time 0.96 hours\n",
      "Training at Epoch 64 iteration 100 with loss 0.12565. Total time 0.96416 hours\n",
      "Training at Epoch 64 iteration 200 with loss 0.21838. Total time 0.96833 hours\n",
      "Training at Epoch 64 iteration 300 with loss 0.16270. Total time 0.97222 hours\n",
      "Validation at Epoch 64 , MSE: 0.19859 , Pearson Correlation: 0.85429 with p-value: 0.0 , Concordance Index: 0.85963\n",
      "Training at Epoch 65 iteration 0 with loss 0.16096. Total time 0.97527 hours\n",
      "Training at Epoch 65 iteration 100 with loss 0.20835. Total time 0.97944 hours\n",
      "Training at Epoch 65 iteration 200 with loss 0.17268. Total time 0.98333 hours\n",
      "Training at Epoch 65 iteration 300 with loss 0.19913. Total time 0.98722 hours\n",
      "Validation at Epoch 65 , MSE: 0.19128 , Pearson Correlation: 0.85707 with p-value: 0.0 , Concordance Index: 0.86415\n",
      "Training at Epoch 66 iteration 0 with loss 0.14595. Total time 0.99027 hours\n",
      "Training at Epoch 66 iteration 100 with loss 0.24437. Total time 0.99444 hours\n",
      "Training at Epoch 66 iteration 200 with loss 0.20150. Total time 0.99833 hours\n",
      "Training at Epoch 66 iteration 300 with loss 0.16985. Total time 1.0025 hours\n",
      "Validation at Epoch 66 , MSE: 0.20326 , Pearson Correlation: 0.85461 with p-value: 0.0 , Concordance Index: 0.85981\n",
      "Training at Epoch 67 iteration 0 with loss 0.18283. Total time 1.00527 hours\n",
      "Training at Epoch 67 iteration 100 with loss 0.22679. Total time 1.00944 hours\n",
      "Training at Epoch 67 iteration 200 with loss 0.16184. Total time 1.01333 hours\n",
      "Training at Epoch 67 iteration 300 with loss 0.18337. Total time 1.01722 hours\n",
      "Validation at Epoch 67 , MSE: 0.18934 , Pearson Correlation: 0.85699 with p-value: 0.0 , Concordance Index: 0.85908\n",
      "Training at Epoch 68 iteration 0 with loss 0.17217. Total time 1.02027 hours\n",
      "Training at Epoch 68 iteration 100 with loss 0.16329. Total time 1.02444 hours\n",
      "Training at Epoch 68 iteration 200 with loss 0.14823. Total time 1.02833 hours\n",
      "Training at Epoch 68 iteration 300 with loss 0.17264. Total time 1.0325 hours\n",
      "Validation at Epoch 68 , MSE: 0.19095 , Pearson Correlation: 0.85824 with p-value: 0.0 , Concordance Index: 0.85971\n",
      "Training at Epoch 69 iteration 0 with loss 0.16538. Total time 1.03555 hours\n",
      "Training at Epoch 69 iteration 100 with loss 0.17145. Total time 1.03944 hours\n",
      "Training at Epoch 69 iteration 200 with loss 0.18840. Total time 1.04361 hours\n",
      "Training at Epoch 69 iteration 300 with loss 0.20343. Total time 1.0475 hours\n",
      "Validation at Epoch 69 , MSE: 0.18838 , Pearson Correlation: 0.85664 with p-value: 0.0 , Concordance Index: 0.85976\n",
      "Training at Epoch 70 iteration 0 with loss 0.18893. Total time 1.05055 hours\n",
      "Training at Epoch 70 iteration 100 with loss 0.18251. Total time 1.05472 hours\n",
      "Training at Epoch 70 iteration 200 with loss 0.22453. Total time 1.05861 hours\n",
      "Training at Epoch 70 iteration 300 with loss 0.14581. Total time 1.06277 hours\n",
      "Validation at Epoch 70 , MSE: 0.19028 , Pearson Correlation: 0.85627 with p-value: 0.0 , Concordance Index: 0.86242\n",
      "Training at Epoch 71 iteration 0 with loss 0.19421. Total time 1.06583 hours\n",
      "Training at Epoch 71 iteration 100 with loss 0.13950. Total time 1.06972 hours\n",
      "Training at Epoch 71 iteration 200 with loss 0.23428. Total time 1.07388 hours\n",
      "Training at Epoch 71 iteration 300 with loss 0.17296. Total time 1.07805 hours\n",
      "Validation at Epoch 71 , MSE: 0.20284 , Pearson Correlation: 0.85170 with p-value: 0.0 , Concordance Index: 0.86053\n",
      "Training at Epoch 72 iteration 0 with loss 0.21568. Total time 1.08083 hours\n",
      "Training at Epoch 72 iteration 100 with loss 0.16149. Total time 1.085 hours\n",
      "Training at Epoch 72 iteration 200 with loss 0.15314. Total time 1.08888 hours\n",
      "Training at Epoch 72 iteration 300 with loss 0.16475. Total time 1.09305 hours\n",
      "Validation at Epoch 72 , MSE: 0.19953 , Pearson Correlation: 0.85943 with p-value: 0.0 , Concordance Index: 0.86324\n",
      "Training at Epoch 73 iteration 0 with loss 0.17718. Total time 1.09611 hours\n",
      "Training at Epoch 73 iteration 100 with loss 0.19575. Total time 1.1 hours\n",
      "Training at Epoch 73 iteration 200 with loss 0.14681. Total time 1.10388 hours\n",
      "Training at Epoch 73 iteration 300 with loss 0.18844. Total time 1.10805 hours\n",
      "Validation at Epoch 73 , MSE: 0.18942 , Pearson Correlation: 0.85774 with p-value: 0.0 , Concordance Index: 0.86477\n",
      "Training at Epoch 74 iteration 0 with loss 0.13729. Total time 1.11111 hours\n",
      "Training at Epoch 74 iteration 100 with loss 0.11236. Total time 1.11527 hours\n",
      "Training at Epoch 74 iteration 200 with loss 0.15729. Total time 1.11916 hours\n",
      "Training at Epoch 74 iteration 300 with loss 0.14599. Total time 1.12333 hours\n",
      "Validation at Epoch 74 , MSE: 0.19196 , Pearson Correlation: 0.85393 with p-value: 0.0 , Concordance Index: 0.86365\n",
      "Training at Epoch 75 iteration 0 with loss 0.14301. Total time 1.12638 hours\n",
      "Training at Epoch 75 iteration 100 with loss 0.19877. Total time 1.13027 hours\n",
      "Training at Epoch 75 iteration 200 with loss 0.13905. Total time 1.13416 hours\n",
      "Training at Epoch 75 iteration 300 with loss 0.13219. Total time 1.13833 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Validation at Epoch 75 , MSE: 0.18549 , Pearson Correlation: 0.85836 with p-value: 0.0 , Concordance Index: 0.86470\n",
      "Training at Epoch 76 iteration 0 with loss 0.12068. Total time 1.14138 hours\n",
      "Training at Epoch 76 iteration 100 with loss 0.16162. Total time 1.14527 hours\n",
      "Training at Epoch 76 iteration 200 with loss 0.14294. Total time 1.14944 hours\n",
      "Training at Epoch 76 iteration 300 with loss 0.16943. Total time 1.15333 hours\n",
      "Validation at Epoch 76 , MSE: 0.18829 , Pearson Correlation: 0.85804 with p-value: 0.0 , Concordance Index: 0.86404\n",
      "Training at Epoch 77 iteration 0 with loss 0.16360. Total time 1.15638 hours\n",
      "Training at Epoch 77 iteration 100 with loss 0.19434. Total time 1.16055 hours\n",
      "Training at Epoch 77 iteration 200 with loss 0.16843. Total time 1.16444 hours\n",
      "Training at Epoch 77 iteration 300 with loss 0.14917. Total time 1.16861 hours\n",
      "Validation at Epoch 77 , MSE: 0.18753 , Pearson Correlation: 0.86110 with p-value: 0.0 , Concordance Index: 0.86558\n",
      "Training at Epoch 78 iteration 0 with loss 0.12271. Total time 1.17166 hours\n",
      "Training at Epoch 78 iteration 100 with loss 0.12840. Total time 1.17555 hours\n",
      "Training at Epoch 78 iteration 200 with loss 0.17422. Total time 1.17972 hours\n",
      "Training at Epoch 78 iteration 300 with loss 0.18129. Total time 1.18388 hours\n",
      "Validation at Epoch 78 , MSE: 0.18651 , Pearson Correlation: 0.85917 with p-value: 0.0 , Concordance Index: 0.86247\n",
      "Training at Epoch 79 iteration 0 with loss 0.14828. Total time 1.18666 hours\n",
      "Training at Epoch 79 iteration 100 with loss 0.15953. Total time 1.19083 hours\n",
      "Training at Epoch 79 iteration 200 with loss 0.16207. Total time 1.19472 hours\n",
      "Training at Epoch 79 iteration 300 with loss 0.16725. Total time 1.19861 hours\n",
      "Validation at Epoch 79 , MSE: 0.18309 , Pearson Correlation: 0.86121 with p-value: 0.0 , Concordance Index: 0.86709\n",
      "Training at Epoch 80 iteration 0 with loss 0.13004. Total time 1.20166 hours\n",
      "Training at Epoch 80 iteration 100 with loss 0.13975. Total time 1.20583 hours\n",
      "Training at Epoch 80 iteration 200 with loss 0.14543. Total time 1.21 hours\n",
      "Training at Epoch 80 iteration 300 with loss 0.11918. Total time 1.21388 hours\n",
      "Validation at Epoch 80 , MSE: 0.18641 , Pearson Correlation: 0.85850 with p-value: 0.0 , Concordance Index: 0.86547\n",
      "Training at Epoch 81 iteration 0 with loss 0.16708. Total time 1.21694 hours\n",
      "Training at Epoch 81 iteration 100 with loss 0.14156. Total time 1.22111 hours\n",
      "Training at Epoch 81 iteration 200 with loss 0.11665. Total time 1.225 hours\n",
      "Training at Epoch 81 iteration 300 with loss 0.14959. Total time 1.22916 hours\n",
      "Validation at Epoch 81 , MSE: 0.18955 , Pearson Correlation: 0.85663 with p-value: 0.0 , Concordance Index: 0.86320\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 80 Testing MSE: 0.2577808595629348 , Pearson Correlation: 0.8096719029275263 with p-value: 0.0 , Concordance Index: 0.8083240757504806\n",
      "Training at Epoch 82 iteration 0 with loss 0.12189. Total time 1.23611 hours\n",
      "Training at Epoch 82 iteration 100 with loss 0.15512. Total time 1.24 hours\n",
      "Training at Epoch 82 iteration 200 with loss 0.17017. Total time 1.24416 hours\n",
      "Training at Epoch 82 iteration 300 with loss 0.12027. Total time 1.24805 hours\n",
      "Validation at Epoch 82 , MSE: 0.18955 , Pearson Correlation: 0.85575 with p-value: 0.0 , Concordance Index: 0.86566\n",
      "Training at Epoch 83 iteration 0 with loss 0.12385. Total time 1.25111 hours\n",
      "Training at Epoch 83 iteration 100 with loss 0.15769. Total time 1.255 hours\n",
      "Training at Epoch 83 iteration 200 with loss 0.18086. Total time 1.25916 hours\n",
      "Training at Epoch 83 iteration 300 with loss 0.14890. Total time 1.26305 hours\n",
      "Validation at Epoch 83 , MSE: 0.18390 , Pearson Correlation: 0.85968 with p-value: 0.0 , Concordance Index: 0.86649\n",
      "Training at Epoch 84 iteration 0 with loss 0.12005. Total time 1.26611 hours\n",
      "Training at Epoch 84 iteration 100 with loss 0.11399. Total time 1.27 hours\n",
      "Training at Epoch 84 iteration 200 with loss 0.12214. Total time 1.27416 hours\n",
      "Training at Epoch 84 iteration 300 with loss 0.13646. Total time 1.27805 hours\n",
      "Validation at Epoch 84 , MSE: 0.18609 , Pearson Correlation: 0.85999 with p-value: 0.0 , Concordance Index: 0.86768\n",
      "Training at Epoch 85 iteration 0 with loss 0.12972. Total time 1.28111 hours\n",
      "Training at Epoch 85 iteration 100 with loss 0.11661. Total time 1.285 hours\n",
      "Training at Epoch 85 iteration 200 with loss 0.19267. Total time 1.28916 hours\n",
      "Training at Epoch 85 iteration 300 with loss 0.16216. Total time 1.29305 hours\n",
      "Validation at Epoch 85 , MSE: 0.19085 , Pearson Correlation: 0.85889 with p-value: 0.0 , Concordance Index: 0.86775\n",
      "Training at Epoch 86 iteration 0 with loss 0.14177. Total time 1.29611 hours\n",
      "Training at Epoch 86 iteration 100 with loss 0.15068. Total time 1.3 hours\n",
      "Training at Epoch 86 iteration 200 with loss 0.14597. Total time 1.30416 hours\n",
      "Training at Epoch 86 iteration 300 with loss 0.13322. Total time 1.30805 hours\n",
      "Validation at Epoch 86 , MSE: 0.18611 , Pearson Correlation: 0.85888 with p-value: 0.0 , Concordance Index: 0.86816\n",
      "Training at Epoch 87 iteration 0 with loss 0.11907. Total time 1.31111 hours\n",
      "Training at Epoch 87 iteration 100 with loss 0.12508. Total time 1.315 hours\n",
      "Training at Epoch 87 iteration 200 with loss 0.17523. Total time 1.31916 hours\n",
      "Training at Epoch 87 iteration 300 with loss 0.12778. Total time 1.32305 hours\n",
      "Validation at Epoch 87 , MSE: 0.18225 , Pearson Correlation: 0.86124 with p-value: 0.0 , Concordance Index: 0.86871\n",
      "Training at Epoch 88 iteration 0 with loss 0.13057. Total time 1.32611 hours\n",
      "Training at Epoch 88 iteration 100 with loss 0.12666. Total time 1.33 hours\n",
      "Training at Epoch 88 iteration 200 with loss 0.14397. Total time 1.33416 hours\n",
      "Training at Epoch 88 iteration 300 with loss 0.14234. Total time 1.33805 hours\n",
      "Validation at Epoch 88 , MSE: 0.18631 , Pearson Correlation: 0.85820 with p-value: 0.0 , Concordance Index: 0.86542\n",
      "Training at Epoch 89 iteration 0 with loss 0.12605. Total time 1.34111 hours\n",
      "Training at Epoch 89 iteration 100 with loss 0.13045. Total time 1.345 hours\n",
      "Training at Epoch 89 iteration 200 with loss 0.13565. Total time 1.34916 hours\n",
      "Training at Epoch 89 iteration 300 with loss 0.09793. Total time 1.35305 hours\n",
      "Validation at Epoch 89 , MSE: 0.18643 , Pearson Correlation: 0.85981 with p-value: 0.0 , Concordance Index: 0.86833\n",
      "Training at Epoch 90 iteration 0 with loss 0.11335. Total time 1.35611 hours\n",
      "Training at Epoch 90 iteration 100 with loss 0.14791. Total time 1.36 hours\n",
      "Training at Epoch 90 iteration 200 with loss 0.14653. Total time 1.36416 hours\n",
      "Training at Epoch 90 iteration 300 with loss 0.09763. Total time 1.36805 hours\n",
      "Validation at Epoch 90 , MSE: 0.19012 , Pearson Correlation: 0.85950 with p-value: 0.0 , Concordance Index: 0.87037\n",
      "Training at Epoch 91 iteration 0 with loss 0.12949. Total time 1.37111 hours\n",
      "Training at Epoch 91 iteration 100 with loss 0.11390. Total time 1.375 hours\n",
      "Training at Epoch 91 iteration 200 with loss 0.14303. Total time 1.37916 hours\n",
      "Training at Epoch 91 iteration 300 with loss 0.15090. Total time 1.38305 hours\n",
      "Validation at Epoch 91 , MSE: 0.18864 , Pearson Correlation: 0.85835 with p-value: 0.0 , Concordance Index: 0.86922\n",
      "Training at Epoch 92 iteration 0 with loss 0.12938. Total time 1.38611 hours\n",
      "Training at Epoch 92 iteration 100 with loss 0.11981. Total time 1.39 hours\n",
      "Training at Epoch 92 iteration 200 with loss 0.11490. Total time 1.39416 hours\n",
      "Training at Epoch 92 iteration 300 with loss 0.18390. Total time 1.39805 hours\n",
      "Validation at Epoch 92 , MSE: 0.18133 , Pearson Correlation: 0.86172 with p-value: 0.0 , Concordance Index: 0.86898\n",
      "Training at Epoch 93 iteration 0 with loss 0.09444. Total time 1.40111 hours\n",
      "Training at Epoch 93 iteration 100 with loss 0.10691. Total time 1.405 hours\n",
      "Training at Epoch 93 iteration 200 with loss 0.12627. Total time 1.40916 hours\n",
      "Training at Epoch 93 iteration 300 with loss 0.13002. Total time 1.41305 hours\n",
      "Validation at Epoch 93 , MSE: 0.18525 , Pearson Correlation: 0.85898 with p-value: 0.0 , Concordance Index: 0.86896\n",
      "Training at Epoch 94 iteration 0 with loss 0.09169. Total time 1.41611 hours\n",
      "Training at Epoch 94 iteration 100 with loss 0.13609. Total time 1.42 hours\n",
      "Training at Epoch 94 iteration 200 with loss 0.14694. Total time 1.42388 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 94 iteration 300 with loss 0.12011. Total time 1.42805 hours\n",
      "Validation at Epoch 94 , MSE: 0.18614 , Pearson Correlation: 0.86196 with p-value: 0.0 , Concordance Index: 0.87023\n",
      "Training at Epoch 95 iteration 0 with loss 0.14432. Total time 1.43083 hours\n",
      "Training at Epoch 95 iteration 100 with loss 0.11906. Total time 1.435 hours\n",
      "Training at Epoch 95 iteration 200 with loss 0.10943. Total time 1.43916 hours\n",
      "Training at Epoch 95 iteration 300 with loss 0.11194. Total time 1.44305 hours\n",
      "Validation at Epoch 95 , MSE: 0.18842 , Pearson Correlation: 0.85842 with p-value: 0.0 , Concordance Index: 0.86985\n",
      "Training at Epoch 96 iteration 0 with loss 0.11628. Total time 1.44611 hours\n",
      "Training at Epoch 96 iteration 100 with loss 0.10894. Total time 1.45 hours\n",
      "Training at Epoch 96 iteration 200 with loss 0.11423. Total time 1.45416 hours\n",
      "Training at Epoch 96 iteration 300 with loss 0.13878. Total time 1.45805 hours\n",
      "Validation at Epoch 96 , MSE: 0.18577 , Pearson Correlation: 0.86076 with p-value: 0.0 , Concordance Index: 0.87003\n",
      "Training at Epoch 97 iteration 0 with loss 0.12491. Total time 1.46111 hours\n",
      "Training at Epoch 97 iteration 100 with loss 0.09468. Total time 1.465 hours\n",
      "Training at Epoch 97 iteration 200 with loss 0.13515. Total time 1.46916 hours\n",
      "Training at Epoch 97 iteration 300 with loss 0.13364. Total time 1.47305 hours\n",
      "Validation at Epoch 97 , MSE: 0.18331 , Pearson Correlation: 0.86046 with p-value: 0.0 , Concordance Index: 0.87148\n",
      "Training at Epoch 98 iteration 0 with loss 0.11738. Total time 1.47611 hours\n",
      "Training at Epoch 98 iteration 100 with loss 0.13524. Total time 1.48 hours\n",
      "Training at Epoch 98 iteration 200 with loss 0.12000. Total time 1.48416 hours\n",
      "Training at Epoch 98 iteration 300 with loss 0.12835. Total time 1.48805 hours\n",
      "Validation at Epoch 98 , MSE: 0.18237 , Pearson Correlation: 0.86317 with p-value: 0.0 , Concordance Index: 0.87200\n",
      "Training at Epoch 99 iteration 0 with loss 0.11207. Total time 1.49111 hours\n",
      "Training at Epoch 99 iteration 100 with loss 0.11153. Total time 1.495 hours\n",
      "Training at Epoch 99 iteration 200 with loss 0.12888. Total time 1.49916 hours\n",
      "Training at Epoch 99 iteration 300 with loss 0.12128. Total time 1.50305 hours\n",
      "Validation at Epoch 99 , MSE: 0.18353 , Pearson Correlation: 0.86060 with p-value: 0.0 , Concordance Index: 0.86905\n",
      "Training at Epoch 100 iteration 0 with loss 0.11468. Total time 1.50611 hours\n",
      "Training at Epoch 100 iteration 100 with loss 0.10508. Total time 1.51 hours\n",
      "Training at Epoch 100 iteration 200 with loss 0.11410. Total time 1.51416 hours\n",
      "Training at Epoch 100 iteration 300 with loss 0.11062. Total time 1.51805 hours\n",
      "Validation at Epoch 100 , MSE: 0.18668 , Pearson Correlation: 0.85812 with p-value: 0.0 , Concordance Index: 0.86908\n",
      "--- Go for Testing ---\n",
      "Testing MSE: 0.24244538979922664 , Pearson Correlation: 0.819721328621185 with p-value: 0.0 , Concordance Index: 0.8176991141560755\n",
      "--- Training Finished ---\n"
     ]
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYoAAAELCAYAAADHksFtAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjMsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+AADFEAAAed0lEQVR4nO3de7hcVZnn8e+PhFu4TK4oJiQHlFaBdgRPI4qNF1BIZAjaMoMeJAhOpMHxPopm0NBNvLTdKo42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9IU6aWur48SQDkpp+fSVoPPEUabPCvgOeX77s1knYjdbp/JzZPikOkGdF+Abyy7CV3jCSJvN860hnNTMy2gc8ozEYbmQnuJ1W2/6lsfYumonzJ7VLgx6QziLXAJtJVTLtsQ0yTSKO+VmqWug+YVVZWaUrXx7exbjMnCrMy6/PzKaSmonIPl61XGn7570hnEW+MiCdHCvOUng9uQ0x/yvU8u8K2Z7M5ZrOmcKKwXvV4ft61rPyXpGTwvIhYso3HnkA6g3gmiUh6Danp566S/arFMEpEPCJpOXCCpIURsSkfcxbwcuD/bmOcZjVxorBedT/pl/iJklYAjwB3RcR6Sf8b+KKkaaQZ3R4iXcX0SuDqiPi3rRz7R8B7gG9I+jqpb+Js4I9l+/02P58paQmpH2NFlfswziZd9fRDSf8K7E660uohNs8pbdYU7sy2nhRpPua3k9r/f0Ka7vO/5W1fBo4jdTx/i5QsziH9sLq5hmP/GHgXcDjwQ9LMcSeTZjcr3e8WYGGu99ocw3OqHPNHpHs0JgIXk6bZvA14ReR51c2axTPcmZlZIZ9RmJlZIScKMzMr5ERhZmaFnCjMzKyQE4WZmRVyojAzs0JOFGZmVsiJwszMCv0nwuz18FMl0GsAAAAASUVORK5CYII=\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "drug_encoding = 'Morgan'\n",
    "target_encoding = 'AAC'\n",
    "train, val, test = data_process(X_drug, X_target, y, \n",
    "                                drug_encoding, target_encoding, \n",
    "                                split_method='random',frac=[0.7,0.1,0.2], random_seed = 1)\n",
    "\n",
    "config = generate_config(drug_encoding = drug_encoding, \n",
    "                         target_encoding = target_encoding, \n",
    "                         cls_hidden_dims = [1024,1024,512], \n",
    "                         train_epoch = 100, \n",
    "                         LR = 0.001, \n",
    "                         batch_size = 256\n",
    "                        )\n",
    "model = models.model_initialize(**config)\n",
    "model.train(train, val, test)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [],
   "source": [
    "model.save_model('./model_morgan_aac_kiba')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "in total: 118254 drug-target pairs\n",
      "encoding drug...\n",
      "unique drugs: 2068\n",
      "drug encoding finished...\n",
      "encoding protein...\n",
      "unique target sequence: 229\n",
      "-- Encoding AAC takes time. Time Reference: 24s for ~100 sequences in a CPU. Calculate your time by the unique target sequence #, instead of the entire dataset.\n",
      "protein encoding finished...\n",
      "splitting dataset...\n",
      "Done.\n",
      "Let's use 1 GPU!\n",
      "--- Data Preparation ---\n",
      "--- Go for Training ---\n",
      "Training at Epoch 1 iteration 0 with loss 136.282. Total time 0.00027 hours\n",
      "Training at Epoch 1 iteration 100 with loss 0.72624. Total time 0.00361 hours\n",
      "Training at Epoch 1 iteration 200 with loss 0.68116. Total time 0.00722 hours\n",
      "Training at Epoch 1 iteration 300 with loss 0.46575. Total time 0.01083 hours\n",
      "Validation at Epoch 1 , MSE: 0.55159 , Pearson Correlation: 0.62321 with p-value: 0.0 , Concordance Index: 0.74784\n",
      "Training at Epoch 2 iteration 0 with loss 0.79592. Total time 0.01361 hours\n",
      "Training at Epoch 2 iteration 100 with loss 0.68158. Total time 0.01722 hours\n",
      "Training at Epoch 2 iteration 200 with loss 0.53928. Total time 0.02083 hours\n",
      "Training at Epoch 2 iteration 300 with loss 0.57128. Total time 0.02444 hours\n",
      "Validation at Epoch 2 , MSE: 0.41898 , Pearson Correlation: 0.64523 with p-value: 0.0 , Concordance Index: 0.75316\n",
      "Training at Epoch 3 iteration 0 with loss 0.54461. Total time 0.02722 hours\n",
      "Training at Epoch 3 iteration 100 with loss 0.42374. Total time 0.03083 hours\n",
      "Training at Epoch 3 iteration 200 with loss 0.57720. Total time 0.03444 hours\n",
      "Training at Epoch 3 iteration 300 with loss 0.58226. Total time 0.03805 hours\n",
      "Validation at Epoch 3 , MSE: 0.39892 , Pearson Correlation: 0.66887 with p-value: 0.0 , Concordance Index: 0.76018\n",
      "Training at Epoch 4 iteration 0 with loss 0.36612. Total time 0.04083 hours\n",
      "Training at Epoch 4 iteration 100 with loss 0.46652. Total time 0.04444 hours\n",
      "Training at Epoch 4 iteration 200 with loss 0.42146. Total time 0.04805 hours\n",
      "Training at Epoch 4 iteration 300 with loss 0.68085. Total time 0.05166 hours\n",
      "Validation at Epoch 4 , MSE: 0.48754 , Pearson Correlation: 0.67824 with p-value: 0.0 , Concordance Index: 0.76534\n",
      "Training at Epoch 5 iteration 0 with loss 0.59854. Total time 0.05444 hours\n",
      "Training at Epoch 5 iteration 100 with loss 0.64158. Total time 0.05805 hours\n",
      "Training at Epoch 5 iteration 200 with loss 0.71230. Total time 0.06166 hours\n",
      "Training at Epoch 5 iteration 300 with loss 0.43371. Total time 0.06527 hours\n",
      "Validation at Epoch 5 , MSE: 0.57719 , Pearson Correlation: 0.68203 with p-value: 0.0 , Concordance Index: 0.77263\n",
      "Training at Epoch 6 iteration 0 with loss 0.80102. Total time 0.06805 hours\n",
      "Training at Epoch 6 iteration 100 with loss 0.54481. Total time 0.07166 hours\n",
      "Training at Epoch 6 iteration 200 with loss 0.58348. Total time 0.07527 hours\n",
      "Training at Epoch 6 iteration 300 with loss 0.56935. Total time 0.07888 hours\n",
      "Validation at Epoch 6 , MSE: 0.35500 , Pearson Correlation: 0.71721 with p-value: 0.0 , Concordance Index: 0.78287\n",
      "Training at Epoch 7 iteration 0 with loss 0.51759. Total time 0.08166 hours\n",
      "Training at Epoch 7 iteration 100 with loss 0.46873. Total time 0.08527 hours\n",
      "Training at Epoch 7 iteration 200 with loss 0.43094. Total time 0.08888 hours\n",
      "Training at Epoch 7 iteration 300 with loss 0.34856. Total time 0.0925 hours\n",
      "Validation at Epoch 7 , MSE: 0.33315 , Pearson Correlation: 0.74195 with p-value: 0.0 , Concordance Index: 0.79306\n",
      "Training at Epoch 8 iteration 0 with loss 0.32404. Total time 0.09527 hours\n",
      "Training at Epoch 8 iteration 100 with loss 0.39549. Total time 0.09888 hours\n",
      "Training at Epoch 8 iteration 200 with loss 0.36827. Total time 0.1025 hours\n",
      "Training at Epoch 8 iteration 300 with loss 0.54046. Total time 0.10611 hours\n",
      "Validation at Epoch 8 , MSE: 0.32609 , Pearson Correlation: 0.74721 with p-value: 0.0 , Concordance Index: 0.79220\n",
      "Training at Epoch 9 iteration 0 with loss 0.41575. Total time 0.10888 hours\n",
      "Training at Epoch 9 iteration 100 with loss 0.51929. Total time 0.1125 hours\n",
      "Training at Epoch 9 iteration 200 with loss 0.41079. Total time 0.11611 hours\n",
      "Training at Epoch 9 iteration 300 with loss 0.40993. Total time 0.11972 hours\n",
      "Validation at Epoch 9 , MSE: 0.33621 , Pearson Correlation: 0.75708 with p-value: 0.0 , Concordance Index: 0.80358\n",
      "Training at Epoch 10 iteration 0 with loss 0.50009. Total time 0.1225 hours\n",
      "Training at Epoch 10 iteration 100 with loss 0.42072. Total time 0.12611 hours\n",
      "Training at Epoch 10 iteration 200 with loss 0.42366. Total time 0.12972 hours\n",
      "Training at Epoch 10 iteration 300 with loss 0.35334. Total time 0.13333 hours\n",
      "Validation at Epoch 10 , MSE: 0.30519 , Pearson Correlation: 0.76074 with p-value: 0.0 , Concordance Index: 0.80445\n",
      "Training at Epoch 11 iteration 0 with loss 0.40356. Total time 0.13611 hours\n",
      "Training at Epoch 11 iteration 100 with loss 0.46824. Total time 0.13972 hours\n",
      "Training at Epoch 11 iteration 200 with loss 0.37312. Total time 0.14333 hours\n",
      "Training at Epoch 11 iteration 300 with loss 0.41761. Total time 0.14694 hours\n",
      "Validation at Epoch 11 , MSE: 0.30594 , Pearson Correlation: 0.75844 with p-value: 0.0 , Concordance Index: 0.80512\n",
      "Training at Epoch 12 iteration 0 with loss 0.44052. Total time 0.14972 hours\n",
      "Training at Epoch 12 iteration 100 with loss 0.42683. Total time 0.15333 hours\n",
      "Training at Epoch 12 iteration 200 with loss 0.35106. Total time 0.15694 hours\n",
      "Training at Epoch 12 iteration 300 with loss 0.51097. Total time 0.16055 hours\n",
      "Validation at Epoch 12 , MSE: 0.31219 , Pearson Correlation: 0.75651 with p-value: 0.0 , Concordance Index: 0.80055\n",
      "Training at Epoch 13 iteration 0 with loss 0.35777. Total time 0.16333 hours\n",
      "Training at Epoch 13 iteration 100 with loss 0.37624. Total time 0.16694 hours\n",
      "Training at Epoch 13 iteration 200 with loss 0.32758. Total time 0.17055 hours\n",
      "Training at Epoch 13 iteration 300 with loss 0.41592. Total time 0.17416 hours\n",
      "Validation at Epoch 13 , MSE: 0.29782 , Pearson Correlation: 0.76540 with p-value: 0.0 , Concordance Index: 0.80586\n",
      "Training at Epoch 14 iteration 0 with loss 0.45874. Total time 0.17694 hours\n",
      "Training at Epoch 14 iteration 100 with loss 0.37606. Total time 0.18055 hours\n",
      "Training at Epoch 14 iteration 200 with loss 0.48560. Total time 0.18416 hours\n",
      "Training at Epoch 14 iteration 300 with loss 0.43097. Total time 0.18777 hours\n",
      "Validation at Epoch 14 , MSE: 0.29733 , Pearson Correlation: 0.76717 with p-value: 0.0 , Concordance Index: 0.81104\n",
      "Training at Epoch 15 iteration 0 with loss 0.41841. Total time 0.19055 hours\n",
      "Training at Epoch 15 iteration 100 with loss 0.33591. Total time 0.19416 hours\n",
      "Training at Epoch 15 iteration 200 with loss 0.49187. Total time 0.19777 hours\n",
      "Training at Epoch 15 iteration 300 with loss 0.32675. Total time 0.20138 hours\n",
      "Validation at Epoch 15 , MSE: 0.29901 , Pearson Correlation: 0.77269 with p-value: 0.0 , Concordance Index: 0.81022\n",
      "Training at Epoch 16 iteration 0 with loss 0.30146. Total time 0.20416 hours\n",
      "Training at Epoch 16 iteration 100 with loss 0.33552. Total time 0.20777 hours\n",
      "Training at Epoch 16 iteration 200 with loss 0.43348. Total time 0.21138 hours\n",
      "Training at Epoch 16 iteration 300 with loss 0.49088. Total time 0.215 hours\n",
      "Validation at Epoch 16 , MSE: 0.36086 , Pearson Correlation: 0.77406 with p-value: 0.0 , Concordance Index: 0.80885\n",
      "Training at Epoch 17 iteration 0 with loss 0.42718. Total time 0.21777 hours\n",
      "Training at Epoch 17 iteration 100 with loss 0.32371. Total time 0.22138 hours\n",
      "Training at Epoch 17 iteration 200 with loss 0.41134. Total time 0.225 hours\n",
      "Training at Epoch 17 iteration 300 with loss 0.39863. Total time 0.22888 hours\n",
      "Validation at Epoch 17 , MSE: 0.28824 , Pearson Correlation: 0.77414 with p-value: 0.0 , Concordance Index: 0.80760\n",
      "Training at Epoch 18 iteration 0 with loss 0.36005. Total time 0.23138 hours\n",
      "Training at Epoch 18 iteration 100 with loss 0.30409. Total time 0.235 hours\n",
      "Training at Epoch 18 iteration 200 with loss 0.36173. Total time 0.23888 hours\n",
      "Training at Epoch 18 iteration 300 with loss 0.33119. Total time 0.24222 hours\n",
      "Validation at Epoch 18 , MSE: 0.28927 , Pearson Correlation: 0.78019 with p-value: 0.0 , Concordance Index: 0.81459\n",
      "Training at Epoch 19 iteration 0 with loss 0.35183. Total time 0.245 hours\n",
      "Training at Epoch 19 iteration 100 with loss 0.37268. Total time 0.24888 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 19 iteration 200 with loss 0.44996. Total time 0.2525 hours\n",
      "Training at Epoch 19 iteration 300 with loss 0.37454. Total time 0.25611 hours\n",
      "Validation at Epoch 19 , MSE: 0.30607 , Pearson Correlation: 0.78806 with p-value: 0.0 , Concordance Index: 0.81725\n",
      "Training at Epoch 20 iteration 0 with loss 0.32886. Total time 0.25861 hours\n",
      "Training at Epoch 20 iteration 100 with loss 0.34811. Total time 0.26222 hours\n",
      "Training at Epoch 20 iteration 200 with loss 0.30848. Total time 0.26611 hours\n",
      "Training at Epoch 20 iteration 300 with loss 0.35573. Total time 0.26972 hours\n",
      "Validation at Epoch 20 , MSE: 0.34506 , Pearson Correlation: 0.77468 with p-value: 0.0 , Concordance Index: 0.80692\n",
      "Training at Epoch 21 iteration 0 with loss 0.33231. Total time 0.27222 hours\n",
      "Training at Epoch 21 iteration 100 with loss 0.37696. Total time 0.27611 hours\n",
      "Training at Epoch 21 iteration 200 with loss 0.33365. Total time 0.27972 hours\n",
      "Training at Epoch 21 iteration 300 with loss 0.40114. Total time 0.28333 hours\n",
      "Validation at Epoch 21 , MSE: 0.26970 , Pearson Correlation: 0.79308 with p-value: 0.0 , Concordance Index: 0.81558\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 20 Testing MSE: 0.35286998353870935 , Pearson Correlation: 0.7282826678735651 with p-value: 0.0 , Concordance Index: 0.7555650172320353\n",
      "Training at Epoch 22 iteration 0 with loss 0.33376. Total time 0.28944 hours\n",
      "Training at Epoch 22 iteration 100 with loss 0.38500. Total time 0.29305 hours\n",
      "Training at Epoch 22 iteration 200 with loss 0.36229. Total time 0.29666 hours\n",
      "Training at Epoch 22 iteration 300 with loss 0.34609. Total time 0.30027 hours\n",
      "Validation at Epoch 22 , MSE: 0.27611 , Pearson Correlation: 0.79173 with p-value: 0.0 , Concordance Index: 0.81709\n",
      "Training at Epoch 23 iteration 0 with loss 0.41872. Total time 0.30305 hours\n",
      "Training at Epoch 23 iteration 100 with loss 0.38638. Total time 0.30666 hours\n",
      "Training at Epoch 23 iteration 200 with loss 0.45294. Total time 0.31027 hours\n",
      "Training at Epoch 23 iteration 300 with loss 0.28115. Total time 0.31388 hours\n",
      "Validation at Epoch 23 , MSE: 0.27545 , Pearson Correlation: 0.79497 with p-value: 0.0 , Concordance Index: 0.81885\n",
      "Training at Epoch 24 iteration 0 with loss 0.30812. Total time 0.31666 hours\n",
      "Training at Epoch 24 iteration 100 with loss 0.37415. Total time 0.32027 hours\n",
      "Training at Epoch 24 iteration 200 with loss 0.35096. Total time 0.32388 hours\n",
      "Training at Epoch 24 iteration 300 with loss 0.35234. Total time 0.3275 hours\n",
      "Validation at Epoch 24 , MSE: 0.27287 , Pearson Correlation: 0.79639 with p-value: 0.0 , Concordance Index: 0.82176\n",
      "Training at Epoch 25 iteration 0 with loss 0.29764. Total time 0.33027 hours\n",
      "Training at Epoch 25 iteration 100 with loss 0.32157. Total time 0.33388 hours\n",
      "Training at Epoch 25 iteration 200 with loss 0.29026. Total time 0.3375 hours\n",
      "Training at Epoch 25 iteration 300 with loss 0.36091. Total time 0.34111 hours\n",
      "Validation at Epoch 25 , MSE: 0.26213 , Pearson Correlation: 0.80080 with p-value: 0.0 , Concordance Index: 0.82200\n",
      "Training at Epoch 26 iteration 0 with loss 0.31691. Total time 0.34388 hours\n",
      "Training at Epoch 26 iteration 100 with loss 0.32471. Total time 0.3475 hours\n",
      "Training at Epoch 26 iteration 200 with loss 0.33982. Total time 0.35138 hours\n",
      "Training at Epoch 26 iteration 300 with loss 0.31150. Total time 0.355 hours\n",
      "Validation at Epoch 26 , MSE: 0.26944 , Pearson Correlation: 0.80893 with p-value: 0.0 , Concordance Index: 0.82842\n",
      "Training at Epoch 27 iteration 0 with loss 0.42358. Total time 0.3575 hours\n",
      "Training at Epoch 27 iteration 100 with loss 0.28949. Total time 0.36111 hours\n",
      "Training at Epoch 27 iteration 200 with loss 0.26748. Total time 0.36472 hours\n",
      "Training at Epoch 27 iteration 300 with loss 0.37436. Total time 0.36833 hours\n",
      "Validation at Epoch 27 , MSE: 0.26520 , Pearson Correlation: 0.80792 with p-value: 0.0 , Concordance Index: 0.82594\n",
      "Training at Epoch 28 iteration 0 with loss 0.28271. Total time 0.37111 hours\n",
      "Training at Epoch 28 iteration 100 with loss 0.35894. Total time 0.37472 hours\n",
      "Training at Epoch 28 iteration 200 with loss 0.34273. Total time 0.37833 hours\n",
      "Training at Epoch 28 iteration 300 with loss 0.29367. Total time 0.38194 hours\n",
      "Validation at Epoch 28 , MSE: 0.26736 , Pearson Correlation: 0.80926 with p-value: 0.0 , Concordance Index: 0.82471\n",
      "Training at Epoch 29 iteration 0 with loss 0.26923. Total time 0.38472 hours\n",
      "Training at Epoch 29 iteration 100 with loss 0.26056. Total time 0.38833 hours\n",
      "Training at Epoch 29 iteration 200 with loss 0.26665. Total time 0.39194 hours\n",
      "Training at Epoch 29 iteration 300 with loss 0.27142. Total time 0.39555 hours\n",
      "Validation at Epoch 29 , MSE: 0.24830 , Pearson Correlation: 0.81036 with p-value: 0.0 , Concordance Index: 0.82186\n",
      "Training at Epoch 30 iteration 0 with loss 0.29064. Total time 0.39833 hours\n",
      "Training at Epoch 30 iteration 100 with loss 0.24848. Total time 0.40194 hours\n",
      "Training at Epoch 30 iteration 200 with loss 0.28270. Total time 0.40583 hours\n",
      "Training at Epoch 30 iteration 300 with loss 0.34730. Total time 0.40944 hours\n",
      "Validation at Epoch 30 , MSE: 0.23178 , Pearson Correlation: 0.82337 with p-value: 0.0 , Concordance Index: 0.83856\n",
      "Training at Epoch 31 iteration 0 with loss 0.25508. Total time 0.41222 hours\n",
      "Training at Epoch 31 iteration 100 with loss 0.28281. Total time 0.41583 hours\n",
      "Training at Epoch 31 iteration 200 with loss 0.23333. Total time 0.41972 hours\n",
      "Training at Epoch 31 iteration 300 with loss 0.33058. Total time 0.42333 hours\n",
      "Validation at Epoch 31 , MSE: 0.25874 , Pearson Correlation: 0.80957 with p-value: 0.0 , Concordance Index: 0.83056\n",
      "Training at Epoch 32 iteration 0 with loss 0.32014. Total time 0.42611 hours\n",
      "Training at Epoch 32 iteration 100 with loss 0.26512. Total time 0.42972 hours\n",
      "Training at Epoch 32 iteration 200 with loss 0.26731. Total time 0.43333 hours\n",
      "Training at Epoch 32 iteration 300 with loss 0.26500. Total time 0.43694 hours\n",
      "Validation at Epoch 32 , MSE: 0.24019 , Pearson Correlation: 0.81797 with p-value: 0.0 , Concordance Index: 0.83402\n",
      "Training at Epoch 33 iteration 0 with loss 0.25121. Total time 0.43972 hours\n",
      "Training at Epoch 33 iteration 100 with loss 0.27981. Total time 0.44333 hours\n",
      "Training at Epoch 33 iteration 200 with loss 0.29677. Total time 0.44694 hours\n",
      "Training at Epoch 33 iteration 300 with loss 0.34324. Total time 0.45055 hours\n",
      "Validation at Epoch 33 , MSE: 0.23793 , Pearson Correlation: 0.81902 with p-value: 0.0 , Concordance Index: 0.83578\n",
      "Training at Epoch 34 iteration 0 with loss 0.26545. Total time 0.45333 hours\n",
      "Training at Epoch 34 iteration 100 with loss 0.20717. Total time 0.45694 hours\n",
      "Training at Epoch 34 iteration 200 with loss 0.24612. Total time 0.46055 hours\n",
      "Training at Epoch 34 iteration 300 with loss 0.28146. Total time 0.46416 hours\n",
      "Validation at Epoch 34 , MSE: 0.23101 , Pearson Correlation: 0.83032 with p-value: 0.0 , Concordance Index: 0.84109\n",
      "Training at Epoch 35 iteration 0 with loss 0.27809. Total time 0.46694 hours\n",
      "Training at Epoch 35 iteration 100 with loss 0.24391. Total time 0.47055 hours\n",
      "Training at Epoch 35 iteration 200 with loss 0.20112. Total time 0.47416 hours\n",
      "Training at Epoch 35 iteration 300 with loss 0.24983. Total time 0.47777 hours\n",
      "Validation at Epoch 35 , MSE: 0.22461 , Pearson Correlation: 0.82901 with p-value: 0.0 , Concordance Index: 0.83932\n",
      "Training at Epoch 36 iteration 0 with loss 0.21489. Total time 0.48055 hours\n",
      "Training at Epoch 36 iteration 100 with loss 0.27069. Total time 0.48416 hours\n",
      "Training at Epoch 36 iteration 200 with loss 0.31957. Total time 0.48777 hours\n",
      "Training at Epoch 36 iteration 300 with loss 0.28507. Total time 0.49138 hours\n",
      "Validation at Epoch 36 , MSE: 0.22675 , Pearson Correlation: 0.83210 with p-value: 0.0 , Concordance Index: 0.84599\n",
      "Training at Epoch 37 iteration 0 with loss 0.27275. Total time 0.49416 hours\n",
      "Training at Epoch 37 iteration 100 with loss 0.26972. Total time 0.49777 hours\n",
      "Training at Epoch 37 iteration 200 with loss 0.24118. Total time 0.50138 hours\n",
      "Training at Epoch 37 iteration 300 with loss 0.25979. Total time 0.505 hours\n",
      "Validation at Epoch 37 , MSE: 0.29054 , Pearson Correlation: 0.83271 with p-value: 0.0 , Concordance Index: 0.84864\n",
      "Training at Epoch 38 iteration 0 with loss 0.35149. Total time 0.50777 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 38 iteration 100 with loss 0.25930. Total time 0.51138 hours\n",
      "Training at Epoch 38 iteration 200 with loss 0.22249. Total time 0.515 hours\n",
      "Training at Epoch 38 iteration 300 with loss 0.19971. Total time 0.51861 hours\n",
      "Validation at Epoch 38 , MSE: 0.21976 , Pearson Correlation: 0.83645 with p-value: 0.0 , Concordance Index: 0.84816\n",
      "Training at Epoch 39 iteration 0 with loss 0.19784. Total time 0.52138 hours\n",
      "Training at Epoch 39 iteration 100 with loss 0.27700. Total time 0.525 hours\n",
      "Training at Epoch 39 iteration 200 with loss 0.29000. Total time 0.52861 hours\n",
      "Training at Epoch 39 iteration 300 with loss 0.19848. Total time 0.53222 hours\n",
      "Validation at Epoch 39 , MSE: 0.22671 , Pearson Correlation: 0.83126 with p-value: 0.0 , Concordance Index: 0.84568\n",
      "Training at Epoch 40 iteration 0 with loss 0.21320. Total time 0.535 hours\n",
      "Training at Epoch 40 iteration 100 with loss 0.26903. Total time 0.53861 hours\n",
      "Training at Epoch 40 iteration 200 with loss 0.22421. Total time 0.54222 hours\n",
      "Training at Epoch 40 iteration 300 with loss 0.20914. Total time 0.54583 hours\n",
      "Validation at Epoch 40 , MSE: 0.22482 , Pearson Correlation: 0.83861 with p-value: 0.0 , Concordance Index: 0.84920\n",
      "Training at Epoch 41 iteration 0 with loss 0.22952. Total time 0.54861 hours\n",
      "Training at Epoch 41 iteration 100 with loss 0.25386. Total time 0.55222 hours\n",
      "Training at Epoch 41 iteration 200 with loss 0.17931. Total time 0.55583 hours\n",
      "Training at Epoch 41 iteration 300 with loss 0.23142. Total time 0.55944 hours\n",
      "Validation at Epoch 41 , MSE: 0.21680 , Pearson Correlation: 0.83705 with p-value: 0.0 , Concordance Index: 0.84919\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 40 Testing MSE: 0.277825307517608 , Pearson Correlation: 0.7915218866461096 with p-value: 0.0 , Concordance Index: 0.7931036672351762\n",
      "Training at Epoch 42 iteration 0 with loss 0.22631. Total time 0.56583 hours\n",
      "Training at Epoch 42 iteration 100 with loss 0.26389. Total time 0.56944 hours\n",
      "Training at Epoch 42 iteration 200 with loss 0.25664. Total time 0.57305 hours\n",
      "Training at Epoch 42 iteration 300 with loss 0.20754. Total time 0.57666 hours\n",
      "Validation at Epoch 42 , MSE: 0.22326 , Pearson Correlation: 0.84201 with p-value: 0.0 , Concordance Index: 0.85036\n",
      "Training at Epoch 43 iteration 0 with loss 0.21273. Total time 0.57944 hours\n",
      "Training at Epoch 43 iteration 100 with loss 0.26843. Total time 0.58305 hours\n",
      "Training at Epoch 43 iteration 200 with loss 0.26132. Total time 0.58666 hours\n",
      "Training at Epoch 43 iteration 300 with loss 0.17761. Total time 0.59027 hours\n",
      "Validation at Epoch 43 , MSE: 0.21046 , Pearson Correlation: 0.84085 with p-value: 0.0 , Concordance Index: 0.85191\n",
      "Training at Epoch 44 iteration 0 with loss 0.16270. Total time 0.59305 hours\n",
      "Training at Epoch 44 iteration 100 with loss 0.17641. Total time 0.59666 hours\n",
      "Training at Epoch 44 iteration 200 with loss 0.17096. Total time 0.60027 hours\n",
      "Training at Epoch 44 iteration 300 with loss 0.15611. Total time 0.60388 hours\n",
      "Validation at Epoch 44 , MSE: 0.22279 , Pearson Correlation: 0.84016 with p-value: 0.0 , Concordance Index: 0.84859\n",
      "Training at Epoch 45 iteration 0 with loss 0.25970. Total time 0.60666 hours\n",
      "Training at Epoch 45 iteration 100 with loss 0.25493. Total time 0.61027 hours\n",
      "Training at Epoch 45 iteration 200 with loss 0.23918. Total time 0.61388 hours\n",
      "Training at Epoch 45 iteration 300 with loss 0.22525. Total time 0.6175 hours\n",
      "Validation at Epoch 45 , MSE: 0.23997 , Pearson Correlation: 0.83928 with p-value: 0.0 , Concordance Index: 0.85067\n",
      "Training at Epoch 46 iteration 0 with loss 0.22739. Total time 0.62027 hours\n",
      "Training at Epoch 46 iteration 100 with loss 0.25848. Total time 0.62388 hours\n",
      "Training at Epoch 46 iteration 200 with loss 0.17906. Total time 0.6275 hours\n",
      "Training at Epoch 46 iteration 300 with loss 0.21408. Total time 0.63111 hours\n",
      "Validation at Epoch 46 , MSE: 0.21989 , Pearson Correlation: 0.84637 with p-value: 0.0 , Concordance Index: 0.84954\n",
      "Training at Epoch 47 iteration 0 with loss 0.24140. Total time 0.63388 hours\n",
      "Training at Epoch 47 iteration 100 with loss 0.20312. Total time 0.6375 hours\n",
      "Training at Epoch 47 iteration 200 with loss 0.21401. Total time 0.64111 hours\n",
      "Training at Epoch 47 iteration 300 with loss 0.23631. Total time 0.64472 hours\n",
      "Validation at Epoch 47 , MSE: 0.23429 , Pearson Correlation: 0.84716 with p-value: 0.0 , Concordance Index: 0.85473\n",
      "Training at Epoch 48 iteration 0 with loss 0.20396. Total time 0.6475 hours\n",
      "Training at Epoch 48 iteration 100 with loss 0.19980. Total time 0.65111 hours\n",
      "Training at Epoch 48 iteration 200 with loss 0.24100. Total time 0.65472 hours\n",
      "Training at Epoch 48 iteration 300 with loss 0.14994. Total time 0.65833 hours\n",
      "Validation at Epoch 48 , MSE: 0.21435 , Pearson Correlation: 0.84161 with p-value: 0.0 , Concordance Index: 0.85250\n",
      "Training at Epoch 49 iteration 0 with loss 0.20755. Total time 0.66111 hours\n",
      "Training at Epoch 49 iteration 100 with loss 0.16067. Total time 0.66472 hours\n",
      "Training at Epoch 49 iteration 200 with loss 0.21210. Total time 0.66833 hours\n",
      "Training at Epoch 49 iteration 300 with loss 0.20794. Total time 0.67194 hours\n",
      "Validation at Epoch 49 , MSE: 0.21622 , Pearson Correlation: 0.84844 with p-value: 0.0 , Concordance Index: 0.85503\n",
      "Training at Epoch 50 iteration 0 with loss 0.20538. Total time 0.67472 hours\n",
      "Training at Epoch 50 iteration 100 with loss 0.18067. Total time 0.67833 hours\n",
      "Training at Epoch 50 iteration 200 with loss 0.19110. Total time 0.68194 hours\n",
      "Training at Epoch 50 iteration 300 with loss 0.22598. Total time 0.68555 hours\n",
      "Validation at Epoch 50 , MSE: 0.22642 , Pearson Correlation: 0.84398 with p-value: 0.0 , Concordance Index: 0.85313\n",
      "Training at Epoch 51 iteration 0 with loss 0.15780. Total time 0.68833 hours\n",
      "Training at Epoch 51 iteration 100 with loss 0.22558. Total time 0.69194 hours\n",
      "Training at Epoch 51 iteration 200 with loss 0.19493. Total time 0.69555 hours\n",
      "Training at Epoch 51 iteration 300 with loss 0.26268. Total time 0.69916 hours\n",
      "Validation at Epoch 51 , MSE: 0.20719 , Pearson Correlation: 0.84862 with p-value: 0.0 , Concordance Index: 0.85587\n",
      "Training at Epoch 52 iteration 0 with loss 0.19901. Total time 0.70194 hours\n",
      "Training at Epoch 52 iteration 100 with loss 0.20890. Total time 0.70555 hours\n",
      "Training at Epoch 52 iteration 200 with loss 0.22555. Total time 0.70916 hours\n",
      "Training at Epoch 52 iteration 300 with loss 0.23633. Total time 0.71277 hours\n",
      "Validation at Epoch 52 , MSE: 0.20541 , Pearson Correlation: 0.84994 with p-value: 0.0 , Concordance Index: 0.85672\n",
      "Training at Epoch 53 iteration 0 with loss 0.20540. Total time 0.71555 hours\n",
      "Training at Epoch 53 iteration 100 with loss 0.14190. Total time 0.71916 hours\n",
      "Training at Epoch 53 iteration 200 with loss 0.16244. Total time 0.72277 hours\n",
      "Training at Epoch 53 iteration 300 with loss 0.17363. Total time 0.72638 hours\n",
      "Validation at Epoch 53 , MSE: 0.20868 , Pearson Correlation: 0.84948 with p-value: 0.0 , Concordance Index: 0.85764\n",
      "Training at Epoch 54 iteration 0 with loss 0.21198. Total time 0.72916 hours\n",
      "Training at Epoch 54 iteration 100 with loss 0.17041. Total time 0.73277 hours\n",
      "Training at Epoch 54 iteration 200 with loss 0.16942. Total time 0.73638 hours\n",
      "Training at Epoch 54 iteration 300 with loss 0.23321. Total time 0.74 hours\n",
      "Validation at Epoch 54 , MSE: 0.21062 , Pearson Correlation: 0.84500 with p-value: 0.0 , Concordance Index: 0.85668\n",
      "Training at Epoch 55 iteration 0 with loss 0.17425. Total time 0.74277 hours\n",
      "Training at Epoch 55 iteration 100 with loss 0.17339. Total time 0.74638 hours\n",
      "Training at Epoch 55 iteration 200 with loss 0.14149. Total time 0.75 hours\n",
      "Training at Epoch 55 iteration 300 with loss 0.17927. Total time 0.75361 hours\n",
      "Validation at Epoch 55 , MSE: 0.19782 , Pearson Correlation: 0.85194 with p-value: 0.0 , Concordance Index: 0.85790\n",
      "Training at Epoch 56 iteration 0 with loss 0.18952. Total time 0.75611 hours\n",
      "Training at Epoch 56 iteration 100 with loss 0.16283. Total time 0.76 hours\n",
      "Training at Epoch 56 iteration 200 with loss 0.20644. Total time 0.76361 hours\n",
      "Training at Epoch 56 iteration 300 with loss 0.19920. Total time 0.76722 hours\n",
      "Validation at Epoch 56 , MSE: 0.19436 , Pearson Correlation: 0.85391 with p-value: 0.0 , Concordance Index: 0.85964\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 57 iteration 0 with loss 0.17647. Total time 0.76972 hours\n",
      "Training at Epoch 57 iteration 100 with loss 0.24570. Total time 0.77333 hours\n",
      "Training at Epoch 57 iteration 200 with loss 0.15609. Total time 0.77694 hours\n",
      "Training at Epoch 57 iteration 300 with loss 0.12224. Total time 0.78055 hours\n",
      "Validation at Epoch 57 , MSE: 0.21064 , Pearson Correlation: 0.85488 with p-value: 0.0 , Concordance Index: 0.85860\n",
      "Training at Epoch 58 iteration 0 with loss 0.19725. Total time 0.78333 hours\n",
      "Training at Epoch 58 iteration 100 with loss 0.17396. Total time 0.78694 hours\n",
      "Training at Epoch 58 iteration 200 with loss 0.15488. Total time 0.79083 hours\n",
      "Training at Epoch 58 iteration 300 with loss 0.24820. Total time 0.79444 hours\n",
      "Validation at Epoch 58 , MSE: 0.20002 , Pearson Correlation: 0.85550 with p-value: 0.0 , Concordance Index: 0.86048\n",
      "Training at Epoch 59 iteration 0 with loss 0.16027. Total time 0.79694 hours\n",
      "Training at Epoch 59 iteration 100 with loss 0.28353. Total time 0.80055 hours\n",
      "Training at Epoch 59 iteration 200 with loss 0.13957. Total time 0.80444 hours\n",
      "Training at Epoch 59 iteration 300 with loss 0.13050. Total time 0.80777 hours\n",
      "Validation at Epoch 59 , MSE: 0.19608 , Pearson Correlation: 0.85353 with p-value: 0.0 , Concordance Index: 0.85722\n",
      "Training at Epoch 60 iteration 0 with loss 0.16613. Total time 0.81055 hours\n",
      "Training at Epoch 60 iteration 100 with loss 0.18041. Total time 0.81416 hours\n",
      "Training at Epoch 60 iteration 200 with loss 0.17194. Total time 0.81805 hours\n",
      "Training at Epoch 60 iteration 300 with loss 0.21822. Total time 0.82166 hours\n",
      "Validation at Epoch 60 , MSE: 0.19820 , Pearson Correlation: 0.85781 with p-value: 0.0 , Concordance Index: 0.86171\n",
      "Training at Epoch 61 iteration 0 with loss 0.16102. Total time 0.82416 hours\n",
      "Training at Epoch 61 iteration 100 with loss 0.17506. Total time 0.82805 hours\n",
      "Training at Epoch 61 iteration 200 with loss 0.14841. Total time 0.83166 hours\n",
      "Training at Epoch 61 iteration 300 with loss 0.21526. Total time 0.83527 hours\n",
      "Validation at Epoch 61 , MSE: 0.19677 , Pearson Correlation: 0.85648 with p-value: 0.0 , Concordance Index: 0.85859\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 60 Testing MSE: 0.2461724908117624 , Pearson Correlation: 0.8250261161857155 with p-value: 0.0 , Concordance Index: 0.8118517206237812\n",
      "Training at Epoch 62 iteration 0 with loss 0.15304. Total time 0.84166 hours\n",
      "Training at Epoch 62 iteration 100 with loss 0.18205. Total time 0.84555 hours\n",
      "Training at Epoch 62 iteration 200 with loss 0.14811. Total time 0.84944 hours\n",
      "Training at Epoch 62 iteration 300 with loss 0.16545. Total time 0.85333 hours\n",
      "Validation at Epoch 62 , MSE: 0.19892 , Pearson Correlation: 0.85150 with p-value: 0.0 , Concordance Index: 0.86020\n",
      "Training at Epoch 63 iteration 0 with loss 0.21815. Total time 0.85611 hours\n",
      "Training at Epoch 63 iteration 100 with loss 0.14818. Total time 0.86 hours\n",
      "Training at Epoch 63 iteration 200 with loss 0.13757. Total time 0.86388 hours\n",
      "Training at Epoch 63 iteration 300 with loss 0.14935. Total time 0.86777 hours\n",
      "Validation at Epoch 63 , MSE: 0.19097 , Pearson Correlation: 0.85900 with p-value: 0.0 , Concordance Index: 0.86253\n",
      "Training at Epoch 64 iteration 0 with loss 0.13567. Total time 0.87055 hours\n",
      "Training at Epoch 64 iteration 100 with loss 0.12549. Total time 0.87444 hours\n",
      "Training at Epoch 64 iteration 200 with loss 0.14076. Total time 0.87833 hours\n",
      "Training at Epoch 64 iteration 300 with loss 0.16623. Total time 0.88222 hours\n",
      "Validation at Epoch 64 , MSE: 0.18674 , Pearson Correlation: 0.86047 with p-value: 0.0 , Concordance Index: 0.86333\n",
      "Training at Epoch 65 iteration 0 with loss 0.11426. Total time 0.88527 hours\n",
      "Training at Epoch 65 iteration 100 with loss 0.15814. Total time 0.88916 hours\n",
      "Training at Epoch 65 iteration 200 with loss 0.15807. Total time 0.89333 hours\n",
      "Training at Epoch 65 iteration 300 with loss 0.14405. Total time 0.89722 hours\n",
      "Validation at Epoch 65 , MSE: 0.19713 , Pearson Correlation: 0.85844 with p-value: 0.0 , Concordance Index: 0.86289\n",
      "Training at Epoch 66 iteration 0 with loss 0.13460. Total time 0.9 hours\n",
      "Training at Epoch 66 iteration 100 with loss 0.12243. Total time 0.90388 hours\n",
      "Training at Epoch 66 iteration 200 with loss 0.14772. Total time 0.90777 hours\n",
      "Training at Epoch 66 iteration 300 with loss 0.15019. Total time 0.91166 hours\n",
      "Validation at Epoch 66 , MSE: 0.19180 , Pearson Correlation: 0.85860 with p-value: 0.0 , Concordance Index: 0.86256\n",
      "Training at Epoch 67 iteration 0 with loss 0.14498. Total time 0.91472 hours\n",
      "Training at Epoch 67 iteration 100 with loss 0.14366. Total time 0.91861 hours\n",
      "Training at Epoch 67 iteration 200 with loss 0.12954. Total time 0.9225 hours\n",
      "Training at Epoch 67 iteration 300 with loss 0.17425. Total time 0.92638 hours\n",
      "Validation at Epoch 67 , MSE: 0.18859 , Pearson Correlation: 0.86035 with p-value: 0.0 , Concordance Index: 0.86503\n",
      "Training at Epoch 68 iteration 0 with loss 0.12869. Total time 0.92944 hours\n",
      "Training at Epoch 68 iteration 100 with loss 0.15190. Total time 0.93333 hours\n",
      "Training at Epoch 68 iteration 200 with loss 0.14200. Total time 0.93722 hours\n",
      "Training at Epoch 68 iteration 300 with loss 0.15764. Total time 0.94111 hours\n",
      "Validation at Epoch 68 , MSE: 0.19062 , Pearson Correlation: 0.86059 with p-value: 0.0 , Concordance Index: 0.86517\n",
      "Training at Epoch 69 iteration 0 with loss 0.12849. Total time 0.94388 hours\n",
      "Training at Epoch 69 iteration 100 with loss 0.16623. Total time 0.94805 hours\n",
      "Training at Epoch 69 iteration 200 with loss 0.12347. Total time 0.95194 hours\n",
      "Training at Epoch 69 iteration 300 with loss 0.16407. Total time 0.95583 hours\n",
      "Validation at Epoch 69 , MSE: 0.19710 , Pearson Correlation: 0.85583 with p-value: 0.0 , Concordance Index: 0.86274\n",
      "Training at Epoch 70 iteration 0 with loss 0.16090. Total time 0.95861 hours\n",
      "Training at Epoch 70 iteration 100 with loss 0.20966. Total time 0.9625 hours\n",
      "Training at Epoch 70 iteration 200 with loss 0.12151. Total time 0.96638 hours\n",
      "Training at Epoch 70 iteration 300 with loss 0.15238. Total time 0.97055 hours\n",
      "Validation at Epoch 70 , MSE: 0.19565 , Pearson Correlation: 0.86101 with p-value: 0.0 , Concordance Index: 0.86460\n",
      "Training at Epoch 71 iteration 0 with loss 0.15816. Total time 0.97333 hours\n",
      "Training at Epoch 71 iteration 100 with loss 0.13178. Total time 0.9775 hours\n",
      "Training at Epoch 71 iteration 200 with loss 0.13574. Total time 0.98138 hours\n",
      "Training at Epoch 71 iteration 300 with loss 0.18280. Total time 0.98555 hours\n",
      "Validation at Epoch 71 , MSE: 0.18414 , Pearson Correlation: 0.86236 with p-value: 0.0 , Concordance Index: 0.86713\n",
      "Training at Epoch 72 iteration 0 with loss 0.14946. Total time 0.98861 hours\n",
      "Training at Epoch 72 iteration 100 with loss 0.15436. Total time 0.9925 hours\n",
      "Training at Epoch 72 iteration 200 with loss 0.14415. Total time 0.99666 hours\n",
      "Training at Epoch 72 iteration 300 with loss 0.16566. Total time 1.00083 hours\n",
      "Validation at Epoch 72 , MSE: 0.19378 , Pearson Correlation: 0.85717 with p-value: 0.0 , Concordance Index: 0.86670\n",
      "Training at Epoch 73 iteration 0 with loss 0.11392. Total time 1.00361 hours\n",
      "Training at Epoch 73 iteration 100 with loss 0.12465. Total time 1.00777 hours\n",
      "Training at Epoch 73 iteration 200 with loss 0.14654. Total time 1.01194 hours\n",
      "Training at Epoch 73 iteration 300 with loss 0.15092. Total time 1.01611 hours\n",
      "Validation at Epoch 73 , MSE: 0.18665 , Pearson Correlation: 0.86428 with p-value: 0.0 , Concordance Index: 0.86697\n",
      "Training at Epoch 74 iteration 0 with loss 0.11016. Total time 1.01916 hours\n",
      "Training at Epoch 74 iteration 100 with loss 0.11337. Total time 1.02305 hours\n",
      "Training at Epoch 74 iteration 200 with loss 0.13391. Total time 1.02722 hours\n",
      "Training at Epoch 74 iteration 300 with loss 0.17038. Total time 1.03138 hours\n",
      "Validation at Epoch 74 , MSE: 0.19689 , Pearson Correlation: 0.85897 with p-value: 0.0 , Concordance Index: 0.86552\n",
      "Training at Epoch 75 iteration 0 with loss 0.14575. Total time 1.03444 hours\n",
      "Training at Epoch 75 iteration 100 with loss 0.12233. Total time 1.03861 hours\n",
      "Training at Epoch 75 iteration 200 with loss 0.16432. Total time 1.04277 hours\n",
      "Training at Epoch 75 iteration 300 with loss 0.09537. Total time 1.04722 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Validation at Epoch 75 , MSE: 0.18761 , Pearson Correlation: 0.86086 with p-value: 0.0 , Concordance Index: 0.86581\n",
      "Training at Epoch 76 iteration 0 with loss 0.15158. Total time 1.05027 hours\n",
      "Training at Epoch 76 iteration 100 with loss 0.14700. Total time 1.05444 hours\n",
      "Training at Epoch 76 iteration 200 with loss 0.13430. Total time 1.05861 hours\n",
      "Training at Epoch 76 iteration 300 with loss 0.13972. Total time 1.06277 hours\n",
      "Validation at Epoch 76 , MSE: 0.18260 , Pearson Correlation: 0.86536 with p-value: 0.0 , Concordance Index: 0.86725\n",
      "Training at Epoch 77 iteration 0 with loss 0.15147. Total time 1.06583 hours\n",
      "Training at Epoch 77 iteration 100 with loss 0.10137. Total time 1.07027 hours\n",
      "Training at Epoch 77 iteration 200 with loss 0.14050. Total time 1.07444 hours\n",
      "Training at Epoch 77 iteration 300 with loss 0.13132. Total time 1.07861 hours\n",
      "Validation at Epoch 77 , MSE: 0.18800 , Pearson Correlation: 0.86140 with p-value: 0.0 , Concordance Index: 0.86888\n",
      "Training at Epoch 78 iteration 0 with loss 0.14809. Total time 1.08166 hours\n",
      "Training at Epoch 78 iteration 100 with loss 0.11034. Total time 1.08583 hours\n",
      "Training at Epoch 78 iteration 200 with loss 0.13273. Total time 1.09027 hours\n",
      "Training at Epoch 78 iteration 300 with loss 0.13134. Total time 1.09444 hours\n",
      "Validation at Epoch 78 , MSE: 0.18767 , Pearson Correlation: 0.86120 with p-value: 0.0 , Concordance Index: 0.86730\n",
      "Training at Epoch 79 iteration 0 with loss 0.13911. Total time 1.0975 hours\n",
      "Training at Epoch 79 iteration 100 with loss 0.09999. Total time 1.10166 hours\n",
      "Training at Epoch 79 iteration 200 with loss 0.12321. Total time 1.10583 hours\n",
      "Training at Epoch 79 iteration 300 with loss 0.12900. Total time 1.11 hours\n",
      "Validation at Epoch 79 , MSE: 0.19086 , Pearson Correlation: 0.85835 with p-value: 0.0 , Concordance Index: 0.86738\n",
      "Training at Epoch 80 iteration 0 with loss 0.12518. Total time 1.11305 hours\n",
      "Training at Epoch 80 iteration 100 with loss 0.13347. Total time 1.11722 hours\n",
      "Training at Epoch 80 iteration 200 with loss 0.14404. Total time 1.12138 hours\n",
      "Training at Epoch 80 iteration 300 with loss 0.15833. Total time 1.12555 hours\n",
      "Validation at Epoch 80 , MSE: 0.19145 , Pearson Correlation: 0.86261 with p-value: 0.0 , Concordance Index: 0.86935\n",
      "Training at Epoch 81 iteration 0 with loss 0.11889. Total time 1.12861 hours\n",
      "Training at Epoch 81 iteration 100 with loss 0.11871. Total time 1.13305 hours\n",
      "Training at Epoch 81 iteration 200 with loss 0.11611. Total time 1.13722 hours\n",
      "Training at Epoch 81 iteration 300 with loss 0.14885. Total time 1.14166 hours\n",
      "Validation at Epoch 81 , MSE: 0.18769 , Pearson Correlation: 0.85934 with p-value: 0.0 , Concordance Index: 0.86808\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 80 Testing MSE: 0.23157461182228 , Pearson Correlation: 0.8241314479921809 with p-value: 0.0 , Concordance Index: 0.8230120707861943\n",
      "Training at Epoch 82 iteration 0 with loss 0.13705. Total time 1.14888 hours\n",
      "Training at Epoch 82 iteration 100 with loss 0.11378. Total time 1.15305 hours\n",
      "Training at Epoch 82 iteration 200 with loss 0.11486. Total time 1.1575 hours\n",
      "Training at Epoch 82 iteration 300 with loss 0.13994. Total time 1.16166 hours\n",
      "Validation at Epoch 82 , MSE: 0.18903 , Pearson Correlation: 0.86104 with p-value: 0.0 , Concordance Index: 0.86785\n",
      "Training at Epoch 83 iteration 0 with loss 0.13897. Total time 1.16472 hours\n",
      "Training at Epoch 83 iteration 100 with loss 0.14150. Total time 1.16916 hours\n",
      "Training at Epoch 83 iteration 200 with loss 0.12775. Total time 1.17333 hours\n",
      "Training at Epoch 83 iteration 300 with loss 0.12781. Total time 1.1775 hours\n",
      "Validation at Epoch 83 , MSE: 0.18277 , Pearson Correlation: 0.86514 with p-value: 0.0 , Concordance Index: 0.86979\n",
      "Training at Epoch 84 iteration 0 with loss 0.11448. Total time 1.18083 hours\n",
      "Training at Epoch 84 iteration 100 with loss 0.09575. Total time 1.185 hours\n",
      "Training at Epoch 84 iteration 200 with loss 0.11876. Total time 1.18944 hours\n",
      "Training at Epoch 84 iteration 300 with loss 0.10103. Total time 1.19361 hours\n",
      "Validation at Epoch 84 , MSE: 0.18730 , Pearson Correlation: 0.86078 with p-value: 0.0 , Concordance Index: 0.86520\n",
      "Training at Epoch 85 iteration 0 with loss 0.11607. Total time 1.19694 hours\n",
      "Training at Epoch 85 iteration 100 with loss 0.11979. Total time 1.20111 hours\n",
      "Training at Epoch 85 iteration 200 with loss 0.11291. Total time 1.20555 hours\n",
      "Training at Epoch 85 iteration 300 with loss 0.11779. Total time 1.20972 hours\n",
      "Validation at Epoch 85 , MSE: 0.19111 , Pearson Correlation: 0.86473 with p-value: 0.0 , Concordance Index: 0.86848\n",
      "Training at Epoch 86 iteration 0 with loss 0.12196. Total time 1.21277 hours\n",
      "Training at Epoch 86 iteration 100 with loss 0.13544. Total time 1.21722 hours\n",
      "Training at Epoch 86 iteration 200 with loss 0.12871. Total time 1.22166 hours\n",
      "Training at Epoch 86 iteration 300 with loss 0.10540. Total time 1.22583 hours\n",
      "Validation at Epoch 86 , MSE: 0.19819 , Pearson Correlation: 0.86168 with p-value: 0.0 , Concordance Index: 0.86747\n",
      "Training at Epoch 87 iteration 0 with loss 0.14814. Total time 1.22916 hours\n",
      "Training at Epoch 87 iteration 100 with loss 0.08961. Total time 1.23361 hours\n",
      "Training at Epoch 87 iteration 200 with loss 0.13414. Total time 1.23777 hours\n",
      "Training at Epoch 87 iteration 300 with loss 0.11686. Total time 1.24194 hours\n",
      "Validation at Epoch 87 , MSE: 0.18547 , Pearson Correlation: 0.86530 with p-value: 0.0 , Concordance Index: 0.87125\n",
      "Training at Epoch 88 iteration 0 with loss 0.11063. Total time 1.24527 hours\n",
      "Training at Epoch 88 iteration 100 with loss 0.13915. Total time 1.24972 hours\n",
      "Training at Epoch 88 iteration 200 with loss 0.11571. Total time 1.25388 hours\n",
      "Training at Epoch 88 iteration 300 with loss 0.10063. Total time 1.25833 hours\n",
      "Validation at Epoch 88 , MSE: 0.18294 , Pearson Correlation: 0.86352 with p-value: 0.0 , Concordance Index: 0.86998\n",
      "Training at Epoch 89 iteration 0 with loss 0.10905. Total time 1.26138 hours\n",
      "Training at Epoch 89 iteration 100 with loss 0.11513. Total time 1.26583 hours\n",
      "Training at Epoch 89 iteration 200 with loss 0.11085. Total time 1.27 hours\n",
      "Training at Epoch 89 iteration 300 with loss 0.10816. Total time 1.27416 hours\n",
      "Validation at Epoch 89 , MSE: 0.19232 , Pearson Correlation: 0.86418 with p-value: 0.0 , Concordance Index: 0.87113\n",
      "Training at Epoch 90 iteration 0 with loss 0.12643. Total time 1.2775 hours\n",
      "Training at Epoch 90 iteration 100 with loss 0.15302. Total time 1.28194 hours\n",
      "Training at Epoch 90 iteration 200 with loss 0.13400. Total time 1.28638 hours\n",
      "Training at Epoch 90 iteration 300 with loss 0.10791. Total time 1.29055 hours\n",
      "Validation at Epoch 90 , MSE: 0.19531 , Pearson Correlation: 0.86300 with p-value: 0.0 , Concordance Index: 0.87040\n",
      "Training at Epoch 91 iteration 0 with loss 0.11637. Total time 1.29388 hours\n",
      "Training at Epoch 91 iteration 100 with loss 0.10319. Total time 1.29805 hours\n",
      "Training at Epoch 91 iteration 200 with loss 0.13455. Total time 1.3025 hours\n",
      "Training at Epoch 91 iteration 300 with loss 0.10897. Total time 1.30666 hours\n",
      "Validation at Epoch 91 , MSE: 0.18095 , Pearson Correlation: 0.86496 with p-value: 0.0 , Concordance Index: 0.87158\n",
      "Training at Epoch 92 iteration 0 with loss 0.09308. Total time 1.31 hours\n",
      "Training at Epoch 92 iteration 100 with loss 0.12097. Total time 1.31444 hours\n",
      "Training at Epoch 92 iteration 200 with loss 0.10695. Total time 1.31861 hours\n",
      "Training at Epoch 92 iteration 300 with loss 0.10770. Total time 1.32305 hours\n",
      "Validation at Epoch 92 , MSE: 0.18911 , Pearson Correlation: 0.85908 with p-value: 0.0 , Concordance Index: 0.86968\n",
      "Training at Epoch 93 iteration 0 with loss 0.09771. Total time 1.32638 hours\n",
      "Training at Epoch 93 iteration 100 with loss 0.13063. Total time 1.33055 hours\n",
      "Training at Epoch 93 iteration 200 with loss 0.10707. Total time 1.335 hours\n",
      "Training at Epoch 93 iteration 300 with loss 0.10061. Total time 1.33916 hours\n",
      "Validation at Epoch 93 , MSE: 0.18541 , Pearson Correlation: 0.86328 with p-value: 0.0 , Concordance Index: 0.87146\n",
      "Training at Epoch 94 iteration 0 with loss 0.10974. Total time 1.3425 hours\n",
      "Training at Epoch 94 iteration 100 with loss 0.12809. Total time 1.34694 hours\n",
      "Training at Epoch 94 iteration 200 with loss 0.09689. Total time 1.35111 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 94 iteration 300 with loss 0.09918. Total time 1.35555 hours\n",
      "Validation at Epoch 94 , MSE: 0.18731 , Pearson Correlation: 0.86210 with p-value: 0.0 , Concordance Index: 0.87035\n",
      "Training at Epoch 95 iteration 0 with loss 0.12397. Total time 1.35861 hours\n",
      "Training at Epoch 95 iteration 100 with loss 0.13438. Total time 1.36305 hours\n",
      "Training at Epoch 95 iteration 200 with loss 0.13314. Total time 1.3675 hours\n",
      "Training at Epoch 95 iteration 300 with loss 0.13369. Total time 1.37166 hours\n",
      "Validation at Epoch 95 , MSE: 0.18183 , Pearson Correlation: 0.86475 with p-value: 0.0 , Concordance Index: 0.87251\n",
      "Training at Epoch 96 iteration 0 with loss 0.10886. Total time 1.375 hours\n",
      "Training at Epoch 96 iteration 100 with loss 0.14130. Total time 1.37944 hours\n",
      "Training at Epoch 96 iteration 200 with loss 0.10427. Total time 1.38361 hours\n",
      "Training at Epoch 96 iteration 300 with loss 0.13166. Total time 1.38805 hours\n",
      "Validation at Epoch 96 , MSE: 0.18303 , Pearson Correlation: 0.86383 with p-value: 0.0 , Concordance Index: 0.87119\n",
      "Training at Epoch 97 iteration 0 with loss 0.09388. Total time 1.39111 hours\n",
      "Training at Epoch 97 iteration 100 with loss 0.09479. Total time 1.39555 hours\n",
      "Training at Epoch 97 iteration 200 with loss 0.08844. Total time 1.4 hours\n",
      "Training at Epoch 97 iteration 300 with loss 0.11265. Total time 1.40416 hours\n",
      "Validation at Epoch 97 , MSE: 0.18199 , Pearson Correlation: 0.86440 with p-value: 0.0 , Concordance Index: 0.87141\n",
      "Training at Epoch 98 iteration 0 with loss 0.11849. Total time 1.4075 hours\n",
      "Training at Epoch 98 iteration 100 with loss 0.11937. Total time 1.41166 hours\n",
      "Training at Epoch 98 iteration 200 with loss 0.10402. Total time 1.41611 hours\n",
      "Training at Epoch 98 iteration 300 with loss 0.11811. Total time 1.42055 hours\n",
      "Validation at Epoch 98 , MSE: 0.17932 , Pearson Correlation: 0.86762 with p-value: 0.0 , Concordance Index: 0.87204\n",
      "Training at Epoch 99 iteration 0 with loss 0.11982. Total time 1.42361 hours\n",
      "Training at Epoch 99 iteration 100 with loss 0.11500. Total time 1.42805 hours\n",
      "Training at Epoch 99 iteration 200 with loss 0.10642. Total time 1.4325 hours\n",
      "Training at Epoch 99 iteration 300 with loss 0.10043. Total time 1.43666 hours\n",
      "Validation at Epoch 99 , MSE: 0.18317 , Pearson Correlation: 0.86308 with p-value: 0.0 , Concordance Index: 0.87309\n",
      "Training at Epoch 100 iteration 0 with loss 0.08123. Total time 1.44 hours\n",
      "Training at Epoch 100 iteration 100 with loss 0.11079. Total time 1.44444 hours\n",
      "Training at Epoch 100 iteration 200 with loss 0.09486. Total time 1.44888 hours\n",
      "Training at Epoch 100 iteration 300 with loss 0.12435. Total time 1.45305 hours\n",
      "Validation at Epoch 100 , MSE: 0.18886 , Pearson Correlation: 0.86031 with p-value: 0.0 , Concordance Index: 0.87227\n",
      "--- Go for Testing ---\n",
      "Testing MSE: 0.2213666016233674 , Pearson Correlation: 0.8327505049451703 with p-value: 0.0 , Concordance Index: 0.8247656810201218\n",
      "--- Training Finished ---\n"
     ]
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYoAAAELCAYAA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cP9Zli52vTLf01qRRwXEX8crMxLej4zhph+lc/zsir7XsammM0awonC2tXz+fnFw+r/i5QMXh4Ri8f43lNILYgXkoikw0hdP49WHDdSDENExO8kLQGOl3RORGzI77kbcDDwL2OM06wmThTWrtaQ/hKfL2kp8Dvg0YhYJ+n/Al+U1EFa0e1Z0lVMhwK3RsTXt/DeNwBnAl+TdAlpbOIjwC+HHfdgfj5d0mLSOMbSEe7D+AjpqqfrJF0I7Ei60upZNq0pbdYQHsy2thRpPeZ3kfr/v09a7vOv8r5/A44hDTz/OylZfJz0h9W9Nbz394D3Aq8DriOtHPdO0upmlcfdB5yTz/ujHMOfjPCeN5Du0ZgKXElaZvMh4PWR11U3axSvcGdmZoXcojAzs0JOFGZmVsiJwszMCjlRmJlZIScKMzMr5ERhZmaFnCjMzKyQE4WZmRX6/4yCTGaBQNg8AAAAAElFTkSuQmCC\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "drug_encoding = 'Morgan'\n",
    "target_encoding = 'AAC'\n",
    "train, val, test = data_process(X_drug, X_target, y, \n",
    "                                drug_encoding, target_encoding, \n",
    "                                split_method='random',frac=[0.7,0.1,0.2], random_seed = 2)\n",
    "\n",
    "config = generate_config(drug_encoding = drug_encoding, \n",
    "                         target_encoding = target_encoding, \n",
    "                         cls_hidden_dims = [1024,1024,512], \n",
    "                         train_epoch = 100, \n",
    "                         LR = 0.001, \n",
    "                         batch_size = 256\n",
    "                        )\n",
    "model = models.model_initialize(**config)\n",
    "model.train(train, val, test)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "in total: 118254 drug-target pairs\n",
      "encoding drug...\n",
      "unique drugs: 2068\n",
      "drug encoding finished...\n",
      "encoding protein...\n",
      "unique target sequence: 229\n",
      "-- Encoding AAC takes time. Time Reference: 24s for ~100 sequences in a CPU. Calculate your time by the unique target sequence #, instead of the entire dataset.\n",
      "protein encoding finished...\n",
      "splitting dataset...\n",
      "Done.\n",
      "Let's use 1 GPU!\n",
      "--- Data Preparation ---\n",
      "--- Go for Training ---\n",
      "Training at Epoch 1 iteration 0 with loss 139.183. Total time 0.0 hours\n",
      "Training at Epoch 1 iteration 100 with loss 0.70966. Total time 0.005 hours\n",
      "Training at Epoch 1 iteration 200 with loss 0.63361. Total time 0.01027 hours\n",
      "Training at Epoch 1 iteration 300 with loss 0.71251. Total time 0.01555 hours\n",
      "Validation at Epoch 1 , MSE: 0.42552 , Pearson Correlation: 0.63605 with p-value: 0.0 , Concordance Index: 0.75363\n",
      "Training at Epoch 2 iteration 0 with loss 0.75832. Total time 0.01888 hours\n",
      "Training at Epoch 2 iteration 100 with loss 0.60945. Total time 0.02388 hours\n",
      "Training at Epoch 2 iteration 200 with loss 0.57672. Total time 0.02916 hours\n",
      "Training at Epoch 2 iteration 300 with loss 0.50744. Total time 0.03416 hours\n",
      "Validation at Epoch 2 , MSE: 0.42341 , Pearson Correlation: 0.65790 with p-value: 0.0 , Concordance Index: 0.76084\n",
      "Training at Epoch 3 iteration 0 with loss 0.52641. Total time 0.03777 hours\n",
      "Training at Epoch 3 iteration 100 with loss 0.62860. Total time 0.04277 hours\n",
      "Training at Epoch 3 iteration 200 with loss 0.55987. Total time 0.04777 hours\n",
      "Training at Epoch 3 iteration 300 with loss 0.75533. Total time 0.05305 hours\n",
      "Validation at Epoch 3 , MSE: 0.57375 , Pearson Correlation: 0.66468 with p-value: 0.0 , Concordance Index: 0.75876\n",
      "Training at Epoch 4 iteration 0 with loss 0.68217. Total time 0.05638 hours\n",
      "Training at Epoch 4 iteration 100 with loss 0.56452. Total time 0.06138 hours\n",
      "Training at Epoch 4 iteration 200 with loss 0.49900. Total time 0.06638 hours\n",
      "Training at Epoch 4 iteration 300 with loss 0.59902. Total time 0.07166 hours\n",
      "Validation at Epoch 4 , MSE: 0.46010 , Pearson Correlation: 0.68459 with p-value: 0.0 , Concordance Index: 0.76968\n",
      "Training at Epoch 5 iteration 0 with loss 0.52549. Total time 0.07527 hours\n",
      "Training at Epoch 5 iteration 100 with loss 0.58863. Total time 0.08 hours\n",
      "Training at Epoch 5 iteration 200 with loss 0.49869. Total time 0.085 hours\n",
      "Training at Epoch 5 iteration 300 with loss 0.56309. Total time 0.09027 hours\n",
      "Validation at Epoch 5 , MSE: 0.37259 , Pearson Correlation: 0.68946 with p-value: 0.0 , Concordance Index: 0.77072\n",
      "Training at Epoch 6 iteration 0 with loss 0.56295. Total time 0.09361 hours\n",
      "Training at Epoch 6 iteration 100 with loss 0.51844. Total time 0.09861 hours\n",
      "Training at Epoch 6 iteration 200 with loss 0.62702. Total time 0.10361 hours\n",
      "Training at Epoch 6 iteration 300 with loss 0.42175. Total time 0.10888 hours\n",
      "Validation at Epoch 6 , MSE: 0.35487 , Pearson Correlation: 0.70912 with p-value: 0.0 , Concordance Index: 0.78336\n",
      "Training at Epoch 7 iteration 0 with loss 0.50544. Total time 0.11222 hours\n",
      "Training at Epoch 7 iteration 100 with loss 0.50843. Total time 0.11722 hours\n",
      "Training at Epoch 7 iteration 200 with loss 0.54825. Total time 0.12222 hours\n",
      "Training at Epoch 7 iteration 300 with loss 0.39456. Total time 0.12722 hours\n",
      "Validation at Epoch 7 , MSE: 0.32066 , Pearson Correlation: 0.74098 with p-value: 0.0 , Concordance Index: 0.79006\n",
      "Training at Epoch 8 iteration 0 with loss 0.40761. Total time 0.13083 hours\n",
      "Training at Epoch 8 iteration 100 with loss 0.45747. Total time 0.13555 hours\n",
      "Training at Epoch 8 iteration 200 with loss 0.56267. Total time 0.14083 hours\n",
      "Training at Epoch 8 iteration 300 with loss 0.49937. Total time 0.14583 hours\n",
      "Validation at Epoch 8 , MSE: 0.35250 , Pearson Correlation: 0.74154 with p-value: 0.0 , Concordance Index: 0.78857\n",
      "Training at Epoch 9 iteration 0 with loss 0.57181. Total time 0.14944 hours\n",
      "Training at Epoch 9 iteration 100 with loss 0.42251. Total time 0.15361 hours\n",
      "Training at Epoch 9 iteration 200 with loss 0.59795. Total time 0.15777 hours\n",
      "Training at Epoch 9 iteration 300 with loss 0.64079. Total time 0.16166 hours\n",
      "Validation at Epoch 9 , MSE: 0.36537 , Pearson Correlation: 0.75249 with p-value: 0.0 , Concordance Index: 0.79072\n",
      "Training at Epoch 10 iteration 0 with loss 0.43467. Total time 0.16472 hours\n",
      "Training at Epoch 10 iteration 100 with loss 0.44834. Total time 0.16916 hours\n",
      "Training at Epoch 10 iteration 200 with loss 0.43226. Total time 0.17333 hours\n",
      "Training at Epoch 10 iteration 300 with loss 0.46478. Total time 0.1775 hours\n",
      "Validation at Epoch 10 , MSE: 0.38698 , Pearson Correlation: 0.75606 with p-value: 0.0 , Concordance Index: 0.79601\n",
      "Training at Epoch 11 iteration 0 with loss 0.51339. Total time 0.18055 hours\n",
      "Training at Epoch 11 iteration 100 with loss 0.43848. Total time 0.18472 hours\n",
      "Training at Epoch 11 iteration 200 with loss 0.43483. Total time 0.18916 hours\n",
      "Training at Epoch 11 iteration 300 with loss 0.38167. Total time 0.19333 hours\n",
      "Validation at Epoch 11 , MSE: 0.31144 , Pearson Correlation: 0.76384 with p-value: 0.0 , Concordance Index: 0.80463\n",
      "Training at Epoch 12 iteration 0 with loss 0.47854. Total time 0.19638 hours\n",
      "Training at Epoch 12 iteration 100 with loss 0.39358. Total time 0.20055 hours\n",
      "Training at Epoch 12 iteration 200 with loss 0.42610. Total time 0.20472 hours\n",
      "Training at Epoch 12 iteration 300 with loss 0.43086. Total time 0.20888 hours\n",
      "Validation at Epoch 12 , MSE: 0.30840 , Pearson Correlation: 0.76499 with p-value: 0.0 , Concordance Index: 0.80755\n",
      "Training at Epoch 13 iteration 0 with loss 0.39173. Total time 0.21222 hours\n",
      "Training at Epoch 13 iteration 100 with loss 0.38054. Total time 0.21638 hours\n",
      "Training at Epoch 13 iteration 200 with loss 0.39496. Total time 0.22055 hours\n",
      "Training at Epoch 13 iteration 300 with loss 0.35979. Total time 0.22472 hours\n",
      "Validation at Epoch 13 , MSE: 0.30075 , Pearson Correlation: 0.77060 with p-value: 0.0 , Concordance Index: 0.81021\n",
      "Training at Epoch 14 iteration 0 with loss 0.44028. Total time 0.22777 hours\n",
      "Training at Epoch 14 iteration 100 with loss 0.50388. Total time 0.23222 hours\n",
      "Training at Epoch 14 iteration 200 with loss 0.37951. Total time 0.23638 hours\n",
      "Training at Epoch 14 iteration 300 with loss 0.37780. Total time 0.24055 hours\n",
      "Validation at Epoch 14 , MSE: 0.28789 , Pearson Correlation: 0.77128 with p-value: 0.0 , Concordance Index: 0.80953\n",
      "Training at Epoch 15 iteration 0 with loss 0.33471. Total time 0.24388 hours\n",
      "Training at Epoch 15 iteration 100 with loss 0.40953. Total time 0.24805 hours\n",
      "Training at Epoch 15 iteration 200 with loss 0.40540. Total time 0.25222 hours\n",
      "Training at Epoch 15 iteration 300 with loss 0.52520. Total time 0.25638 hours\n",
      "Validation at Epoch 15 , MSE: 0.35624 , Pearson Correlation: 0.76909 with p-value: 0.0 , Concordance Index: 0.80497\n",
      "Training at Epoch 16 iteration 0 with loss 0.49553. Total time 0.25944 hours\n",
      "Training at Epoch 16 iteration 100 with loss 0.33979. Total time 0.26388 hours\n",
      "Training at Epoch 16 iteration 200 with loss 0.42497. Total time 0.26805 hours\n",
      "Training at Epoch 16 iteration 300 with loss 0.35463. Total time 0.27222 hours\n",
      "Validation at Epoch 16 , MSE: 0.28689 , Pearson Correlation: 0.77243 with p-value: 0.0 , Concordance Index: 0.81156\n",
      "Training at Epoch 17 iteration 0 with loss 0.44485. Total time 0.27555 hours\n",
      "Training at Epoch 17 iteration 100 with loss 0.33671. Total time 0.27972 hours\n",
      "Training at Epoch 17 iteration 200 with loss 0.32578. Total time 0.28388 hours\n",
      "Training at Epoch 17 iteration 300 with loss 0.38423. Total time 0.28805 hours\n",
      "Validation at Epoch 17 , MSE: 0.31991 , Pearson Correlation: 0.77615 with p-value: 0.0 , Concordance Index: 0.81152\n",
      "Training at Epoch 18 iteration 0 with loss 0.39196. Total time 0.29111 hours\n",
      "Training at Epoch 18 iteration 100 with loss 0.36476. Total time 0.29527 hours\n",
      "Training at Epoch 18 iteration 200 with loss 0.35773. Total time 0.29944 hours\n",
      "Training at Epoch 18 iteration 300 with loss 0.52253. Total time 0.30361 hours\n",
      "Validation at Epoch 18 , MSE: 0.41122 , Pearson Correlation: 0.76880 with p-value: 0.0 , Concordance Index: 0.80987\n",
      "Training at Epoch 19 iteration 0 with loss 0.53448. Total time 0.30666 hours\n",
      "Training at Epoch 19 iteration 100 with loss 0.32474. Total time 0.31083 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 19 iteration 200 with loss 0.35057. Total time 0.315 hours\n",
      "Training at Epoch 19 iteration 300 with loss 0.42568. Total time 0.31916 hours\n",
      "Validation at Epoch 19 , MSE: 0.29721 , Pearson Correlation: 0.77628 with p-value: 0.0 , Concordance Index: 0.81011\n",
      "Training at Epoch 20 iteration 0 with loss 0.32184. Total time 0.32222 hours\n",
      "Training at Epoch 20 iteration 100 with loss 0.51506. Total time 0.32638 hours\n",
      "Training at Epoch 20 iteration 200 with loss 0.42105. Total time 0.33055 hours\n",
      "Training at Epoch 20 iteration 300 with loss 0.39838. Total time 0.33444 hours\n",
      "Validation at Epoch 20 , MSE: 0.32661 , Pearson Correlation: 0.77684 with p-value: 0.0 , Concordance Index: 0.81382\n",
      "Training at Epoch 21 iteration 0 with loss 0.42197. Total time 0.33777 hours\n",
      "Training at Epoch 21 iteration 100 with loss 0.49510. Total time 0.34194 hours\n",
      "Training at Epoch 21 iteration 200 with loss 0.37326. Total time 0.34583 hours\n",
      "Training at Epoch 21 iteration 300 with loss 0.52032. Total time 0.35 hours\n",
      "Validation at Epoch 21 , MSE: 0.36819 , Pearson Correlation: 0.78780 with p-value: 0.0 , Concordance Index: 0.81808\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 20 Testing MSE: 0.46523021998944425 , Pearson Correlation: 0.6843701196857922 with p-value: 0.0 , Concordance Index: 0.7410576997918731\n",
      "Training at Epoch 22 iteration 0 with loss 0.48576. Total time 0.35722 hours\n",
      "Training at Epoch 22 iteration 100 with loss 0.32226. Total time 0.36138 hours\n",
      "Training at Epoch 22 iteration 200 with loss 0.30669. Total time 0.36555 hours\n",
      "Training at Epoch 22 iteration 300 with loss 0.49780. Total time 0.36972 hours\n",
      "Validation at Epoch 22 , MSE: 0.27772 , Pearson Correlation: 0.78373 with p-value: 0.0 , Concordance Index: 0.81196\n",
      "Training at Epoch 23 iteration 0 with loss 0.29044. Total time 0.37277 hours\n",
      "Training at Epoch 23 iteration 100 with loss 0.34481. Total time 0.37694 hours\n",
      "Training at Epoch 23 iteration 200 with loss 0.42214. Total time 0.38083 hours\n",
      "Training at Epoch 23 iteration 300 with loss 0.38031. Total time 0.385 hours\n",
      "Validation at Epoch 23 , MSE: 0.27697 , Pearson Correlation: 0.78374 with p-value: 0.0 , Concordance Index: 0.81237\n",
      "Training at Epoch 24 iteration 0 with loss 0.35531. Total time 0.38833 hours\n",
      "Training at Epoch 24 iteration 100 with loss 0.29778. Total time 0.3925 hours\n",
      "Training at Epoch 24 iteration 200 with loss 0.34086. Total time 0.39666 hours\n",
      "Training at Epoch 24 iteration 300 with loss 0.32422. Total time 0.40083 hours\n",
      "Validation at Epoch 24 , MSE: 0.27664 , Pearson Correlation: 0.78334 with p-value: 0.0 , Concordance Index: 0.81404\n",
      "Training at Epoch 25 iteration 0 with loss 0.39621. Total time 0.40388 hours\n",
      "Training at Epoch 25 iteration 100 with loss 0.29641. Total time 0.40833 hours\n",
      "Training at Epoch 25 iteration 200 with loss 0.42142. Total time 0.4125 hours\n",
      "Training at Epoch 25 iteration 300 with loss 0.44023. Total time 0.41666 hours\n",
      "Validation at Epoch 25 , MSE: 0.26816 , Pearson Correlation: 0.79508 with p-value: 0.0 , Concordance Index: 0.82091\n",
      "Training at Epoch 26 iteration 0 with loss 0.32100. Total time 0.41972 hours\n",
      "Training at Epoch 26 iteration 100 with loss 0.43951. Total time 0.42416 hours\n",
      "Training at Epoch 26 iteration 200 with loss 0.33974. Total time 0.42833 hours\n",
      "Training at Epoch 26 iteration 300 with loss 0.35145. Total time 0.4325 hours\n",
      "Validation at Epoch 26 , MSE: 0.30641 , Pearson Correlation: 0.79163 with p-value: 0.0 , Concordance Index: 0.81348\n",
      "Training at Epoch 27 iteration 0 with loss 0.31574. Total time 0.43555 hours\n",
      "Training at Epoch 27 iteration 100 with loss 0.33507. Total time 0.44 hours\n",
      "Training at Epoch 27 iteration 200 with loss 0.29802. Total time 0.44416 hours\n",
      "Training at Epoch 27 iteration 300 with loss 0.29911. Total time 0.44833 hours\n",
      "Validation at Epoch 27 , MSE: 0.26819 , Pearson Correlation: 0.79665 with p-value: 0.0 , Concordance Index: 0.81868\n",
      "Training at Epoch 28 iteration 0 with loss 0.29970. Total time 0.45166 hours\n",
      "Training at Epoch 28 iteration 100 with loss 0.35269. Total time 0.45583 hours\n",
      "Training at Epoch 28 iteration 200 with loss 0.33489. Total time 0.46027 hours\n",
      "Training at Epoch 28 iteration 300 with loss 0.29870. Total time 0.46444 hours\n",
      "Validation at Epoch 28 , MSE: 0.26208 , Pearson Correlation: 0.79906 with p-value: 0.0 , Concordance Index: 0.81665\n",
      "Training at Epoch 29 iteration 0 with loss 0.29733. Total time 0.4675 hours\n",
      "Training at Epoch 29 iteration 100 with loss 0.28419. Total time 0.47194 hours\n",
      "Training at Epoch 29 iteration 200 with loss 0.37637. Total time 0.47611 hours\n",
      "Training at Epoch 29 iteration 300 with loss 0.37073. Total time 0.48027 hours\n",
      "Validation at Epoch 29 , MSE: 0.27527 , Pearson Correlation: 0.79738 with p-value: 0.0 , Concordance Index: 0.81944\n",
      "Training at Epoch 30 iteration 0 with loss 0.29156. Total time 0.48333 hours\n",
      "Training at Epoch 30 iteration 100 with loss 0.32745. Total time 0.4875 hours\n",
      "Training at Epoch 30 iteration 200 with loss 0.39007. Total time 0.49166 hours\n",
      "Training at Epoch 30 iteration 300 with loss 0.28031. Total time 0.49583 hours\n",
      "Validation at Epoch 30 , MSE: 0.24417 , Pearson Correlation: 0.81033 with p-value: 0.0 , Concordance Index: 0.83274\n",
      "Training at Epoch 31 iteration 0 with loss 0.25159. Total time 0.49888 hours\n",
      "Training at Epoch 31 iteration 100 with loss 0.33925. Total time 0.50305 hours\n",
      "Training at Epoch 31 iteration 200 with loss 0.39552. Total time 0.50722 hours\n",
      "Training at Epoch 31 iteration 300 with loss 0.34175. Total time 0.51111 hours\n",
      "Validation at Epoch 31 , MSE: 0.25299 , Pearson Correlation: 0.80809 with p-value: 0.0 , Concordance Index: 0.82897\n",
      "Training at Epoch 32 iteration 0 with loss 0.29710. Total time 0.51416 hours\n",
      "Training at Epoch 32 iteration 100 with loss 0.27463. Total time 0.51833 hours\n",
      "Training at Epoch 32 iteration 200 with loss 0.31858. Total time 0.5225 hours\n",
      "Training at Epoch 32 iteration 300 with loss 0.49154. Total time 0.52666 hours\n",
      "Validation at Epoch 32 , MSE: 0.24964 , Pearson Correlation: 0.80648 with p-value: 0.0 , Concordance Index: 0.82041\n",
      "Training at Epoch 33 iteration 0 with loss 0.23042. Total time 0.52972 hours\n",
      "Training at Epoch 33 iteration 100 with loss 0.38892. Total time 0.53416 hours\n",
      "Training at Epoch 33 iteration 200 with loss 0.29851. Total time 0.53833 hours\n",
      "Training at Epoch 33 iteration 300 with loss 0.35434. Total time 0.5425 hours\n",
      "Validation at Epoch 33 , MSE: 0.23470 , Pearson Correlation: 0.81967 with p-value: 0.0 , Concordance Index: 0.82946\n",
      "Training at Epoch 34 iteration 0 with loss 0.25566. Total time 0.54555 hours\n",
      "Training at Epoch 34 iteration 100 with loss 0.26174. Total time 0.54972 hours\n",
      "Training at Epoch 34 iteration 200 with loss 0.32576. Total time 0.55388 hours\n",
      "Training at Epoch 34 iteration 300 with loss 0.37033. Total time 0.55805 hours\n",
      "Validation at Epoch 34 , MSE: 0.23922 , Pearson Correlation: 0.81553 with p-value: 0.0 , Concordance Index: 0.82957\n",
      "Training at Epoch 35 iteration 0 with loss 0.31471. Total time 0.56138 hours\n",
      "Training at Epoch 35 iteration 100 with loss 0.21283. Total time 0.56555 hours\n",
      "Training at Epoch 35 iteration 200 with loss 0.24838. Total time 0.56972 hours\n",
      "Training at Epoch 35 iteration 300 with loss 0.24076. Total time 0.57388 hours\n",
      "Validation at Epoch 35 , MSE: 0.27209 , Pearson Correlation: 0.81565 with p-value: 0.0 , Concordance Index: 0.83441\n",
      "Training at Epoch 36 iteration 0 with loss 0.31788. Total time 0.57694 hours\n",
      "Training at Epoch 36 iteration 100 with loss 0.41188. Total time 0.58138 hours\n",
      "Training at Epoch 36 iteration 200 with loss 0.32270. Total time 0.58555 hours\n",
      "Training at Epoch 36 iteration 300 with loss 0.25057. Total time 0.58972 hours\n",
      "Validation at Epoch 36 , MSE: 0.24449 , Pearson Correlation: 0.81948 with p-value: 0.0 , Concordance Index: 0.83706\n",
      "Training at Epoch 37 iteration 0 with loss 0.31053. Total time 0.59277 hours\n",
      "Training at Epoch 37 iteration 100 with loss 0.26548. Total time 0.59694 hours\n",
      "Training at Epoch 37 iteration 200 with loss 0.21660. Total time 0.60111 hours\n",
      "Training at Epoch 37 iteration 300 with loss 0.32269. Total time 0.60527 hours\n",
      "Validation at Epoch 37 , MSE: 0.23544 , Pearson Correlation: 0.82018 with p-value: 0.0 , Concordance Index: 0.84003\n",
      "Training at Epoch 38 iteration 0 with loss 0.25132. Total time 0.60833 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 38 iteration 100 with loss 0.26389. Total time 0.6125 hours\n",
      "Training at Epoch 38 iteration 200 with loss 0.22812. Total time 0.61666 hours\n",
      "Training at Epoch 38 iteration 300 with loss 0.27063. Total time 0.62055 hours\n",
      "Validation at Epoch 38 , MSE: 0.27049 , Pearson Correlation: 0.82952 with p-value: 0.0 , Concordance Index: 0.84035\n",
      "Training at Epoch 39 iteration 0 with loss 0.32580. Total time 0.62361 hours\n",
      "Training at Epoch 39 iteration 100 with loss 0.26703. Total time 0.62777 hours\n",
      "Training at Epoch 39 iteration 200 with loss 0.24415. Total time 0.63194 hours\n",
      "Training at Epoch 39 iteration 300 with loss 0.35669. Total time 0.63583 hours\n",
      "Validation at Epoch 39 , MSE: 0.22588 , Pearson Correlation: 0.83231 with p-value: 0.0 , Concordance Index: 0.84343\n",
      "Training at Epoch 40 iteration 0 with loss 0.17783. Total time 0.63888 hours\n",
      "Training at Epoch 40 iteration 100 with loss 0.32708. Total time 0.64333 hours\n",
      "Training at Epoch 40 iteration 200 with loss 0.22442. Total time 0.6475 hours\n",
      "Training at Epoch 40 iteration 300 with loss 0.21560. Total time 0.65138 hours\n",
      "Validation at Epoch 40 , MSE: 0.24046 , Pearson Correlation: 0.83302 with p-value: 0.0 , Concordance Index: 0.84196\n",
      "Training at Epoch 41 iteration 0 with loss 0.33875. Total time 0.65472 hours\n",
      "Training at Epoch 41 iteration 100 with loss 0.22354. Total time 0.65888 hours\n",
      "Training at Epoch 41 iteration 200 with loss 0.25979. Total time 0.66277 hours\n",
      "Training at Epoch 41 iteration 300 with loss 0.30017. Total time 0.66694 hours\n",
      "Validation at Epoch 41 , MSE: 0.21333 , Pearson Correlation: 0.83770 with p-value: 0.0 , Concordance Index: 0.84703\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 40 Testing MSE: 0.28541923219535426 , Pearson Correlation: 0.7754189811372703 with p-value: 0.0 , Concordance Index: 0.7864244684410312\n",
      "Training at Epoch 42 iteration 0 with loss 0.26342. Total time 0.67388 hours\n",
      "Training at Epoch 42 iteration 100 with loss 0.23341. Total time 0.67805 hours\n",
      "Training at Epoch 42 iteration 200 with loss 0.17424. Total time 0.68222 hours\n",
      "Training at Epoch 42 iteration 300 with loss 0.20486. Total time 0.68611 hours\n",
      "Validation at Epoch 42 , MSE: 0.21763 , Pearson Correlation: 0.83502 with p-value: 0.0 , Concordance Index: 0.84738\n",
      "Training at Epoch 43 iteration 0 with loss 0.20805. Total time 0.68916 hours\n",
      "Training at Epoch 43 iteration 100 with loss 0.26660. Total time 0.69333 hours\n",
      "Training at Epoch 43 iteration 200 with loss 0.17722. Total time 0.6975 hours\n",
      "Training at Epoch 43 iteration 300 with loss 0.17883. Total time 0.70138 hours\n",
      "Validation at Epoch 43 , MSE: 0.21456 , Pearson Correlation: 0.83891 with p-value: 0.0 , Concordance Index: 0.84801\n",
      "Training at Epoch 44 iteration 0 with loss 0.19814. Total time 0.70444 hours\n",
      "Training at Epoch 44 iteration 100 with loss 0.18550. Total time 0.70861 hours\n",
      "Training at Epoch 44 iteration 200 with loss 0.21705. Total time 0.71277 hours\n",
      "Training at Epoch 44 iteration 300 with loss 0.27085. Total time 0.71666 hours\n",
      "Validation at Epoch 44 , MSE: 0.21634 , Pearson Correlation: 0.84666 with p-value: 0.0 , Concordance Index: 0.85353\n",
      "Training at Epoch 45 iteration 0 with loss 0.22828. Total time 0.71972 hours\n",
      "Training at Epoch 45 iteration 100 with loss 0.19412. Total time 0.72388 hours\n",
      "Training at Epoch 45 iteration 200 with loss 0.22147. Total time 0.72805 hours\n",
      "Training at Epoch 45 iteration 300 with loss 0.25694. Total time 0.73194 hours\n",
      "Validation at Epoch 45 , MSE: 0.23864 , Pearson Correlation: 0.84253 with p-value: 0.0 , Concordance Index: 0.85135\n",
      "Training at Epoch 46 iteration 0 with loss 0.24724. Total time 0.735 hours\n",
      "Training at Epoch 46 iteration 100 with loss 0.17020. Total time 0.73916 hours\n",
      "Training at Epoch 46 iteration 200 with loss 0.22803. Total time 0.74333 hours\n",
      "Training at Epoch 46 iteration 300 with loss 0.29880. Total time 0.74722 hours\n",
      "Validation at Epoch 46 , MSE: 0.20183 , Pearson Correlation: 0.84643 with p-value: 0.0 , Concordance Index: 0.85356\n",
      "Training at Epoch 47 iteration 0 with loss 0.19145. Total time 0.75027 hours\n",
      "Training at Epoch 47 iteration 100 with loss 0.20403. Total time 0.75444 hours\n",
      "Training at Epoch 47 iteration 200 with loss 0.29668. Total time 0.75861 hours\n",
      "Training at Epoch 47 iteration 300 with loss 0.20937. Total time 0.7625 hours\n",
      "Validation at Epoch 47 , MSE: 0.23074 , Pearson Correlation: 0.84667 with p-value: 0.0 , Concordance Index: 0.85555\n",
      "Training at Epoch 48 iteration 0 with loss 0.24308. Total time 0.76555 hours\n",
      "Training at Epoch 48 iteration 100 with loss 0.28023. Total time 0.76972 hours\n",
      "Training at Epoch 48 iteration 200 with loss 0.20215. Total time 0.77361 hours\n",
      "Training at Epoch 48 iteration 300 with loss 0.18557. Total time 0.77777 hours\n",
      "Validation at Epoch 48 , MSE: 0.21977 , Pearson Correlation: 0.84584 with p-value: 0.0 , Concordance Index: 0.85635\n",
      "Training at Epoch 49 iteration 0 with loss 0.21235. Total time 0.78083 hours\n",
      "Training at Epoch 49 iteration 100 with loss 0.22186. Total time 0.785 hours\n",
      "Training at Epoch 49 iteration 200 with loss 0.15660. Total time 0.78888 hours\n",
      "Training at Epoch 49 iteration 300 with loss 0.22882. Total time 0.79305 hours\n",
      "Validation at Epoch 49 , MSE: 0.19631 , Pearson Correlation: 0.85427 with p-value: 0.0 , Concordance Index: 0.85539\n",
      "Training at Epoch 50 iteration 0 with loss 0.17570. Total time 0.79611 hours\n",
      "Training at Epoch 50 iteration 100 with loss 0.25545. Total time 0.8 hours\n",
      "Training at Epoch 50 iteration 200 with loss 0.20599. Total time 0.80416 hours\n",
      "Training at Epoch 50 iteration 300 with loss 0.17693. Total time 0.80805 hours\n",
      "Validation at Epoch 50 , MSE: 0.19888 , Pearson Correlation: 0.84831 with p-value: 0.0 , Concordance Index: 0.85705\n",
      "Training at Epoch 51 iteration 0 with loss 0.22407. Total time 0.81111 hours\n",
      "Training at Epoch 51 iteration 100 with loss 0.28925. Total time 0.81527 hours\n",
      "Training at Epoch 51 iteration 200 with loss 0.23430. Total time 0.81944 hours\n",
      "Training at Epoch 51 iteration 300 with loss 0.20155. Total time 0.82333 hours\n",
      "Validation at Epoch 51 , MSE: 0.19234 , Pearson Correlation: 0.85454 with p-value: 0.0 , Concordance Index: 0.86106\n",
      "Training at Epoch 52 iteration 0 with loss 0.16469. Total time 0.82638 hours\n",
      "Training at Epoch 52 iteration 100 with loss 0.18763. Total time 0.83027 hours\n",
      "Training at Epoch 52 iteration 200 with loss 0.19469. Total time 0.83444 hours\n",
      "Training at Epoch 52 iteration 300 with loss 0.21034. Total time 0.83861 hours\n",
      "Validation at Epoch 52 , MSE: 0.19106 , Pearson Correlation: 0.85487 with p-value: 0.0 , Concordance Index: 0.86257\n",
      "Training at Epoch 53 iteration 0 with loss 0.15109. Total time 0.84166 hours\n",
      "Training at Epoch 53 iteration 100 with loss 0.24128. Total time 0.84583 hours\n",
      "Training at Epoch 53 iteration 200 with loss 0.20256. Total time 0.84972 hours\n",
      "Training at Epoch 53 iteration 300 with loss 0.21062. Total time 0.85388 hours\n",
      "Validation at Epoch 53 , MSE: 0.20117 , Pearson Correlation: 0.85490 with p-value: 0.0 , Concordance Index: 0.85873\n",
      "Training at Epoch 54 iteration 0 with loss 0.15070. Total time 0.85694 hours\n",
      "Training at Epoch 54 iteration 100 with loss 0.21323. Total time 0.86083 hours\n",
      "Training at Epoch 54 iteration 200 with loss 0.21791. Total time 0.865 hours\n",
      "Training at Epoch 54 iteration 300 with loss 0.25047. Total time 0.86916 hours\n",
      "Validation at Epoch 54 , MSE: 0.19275 , Pearson Correlation: 0.85395 with p-value: 0.0 , Concordance Index: 0.85958\n",
      "Training at Epoch 55 iteration 0 with loss 0.15319. Total time 0.87222 hours\n",
      "Training at Epoch 55 iteration 100 with loss 0.16961. Total time 0.87638 hours\n",
      "Training at Epoch 55 iteration 200 with loss 0.21328. Total time 0.88055 hours\n",
      "Training at Epoch 55 iteration 300 with loss 0.21836. Total time 0.88472 hours\n",
      "Validation at Epoch 55 , MSE: 0.18731 , Pearson Correlation: 0.85829 with p-value: 0.0 , Concordance Index: 0.86312\n",
      "Training at Epoch 56 iteration 0 with loss 0.17086. Total time 0.88777 hours\n",
      "Training at Epoch 56 iteration 100 with loss 0.21879. Total time 0.89194 hours\n",
      "Training at Epoch 56 iteration 200 with loss 0.19941. Total time 0.89611 hours\n",
      "Training at Epoch 56 iteration 300 with loss 0.18159. Total time 0.90027 hours\n",
      "Validation at Epoch 56 , MSE: 0.19135 , Pearson Correlation: 0.85900 with p-value: 0.0 , Concordance Index: 0.86007\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 57 iteration 0 with loss 0.18954. Total time 0.90333 hours\n",
      "Training at Epoch 57 iteration 100 with loss 0.18711. Total time 0.9075 hours\n",
      "Training at Epoch 57 iteration 200 with loss 0.27754. Total time 0.91138 hours\n",
      "Training at Epoch 57 iteration 300 with loss 0.17495. Total time 0.91555 hours\n",
      "Validation at Epoch 57 , MSE: 0.21352 , Pearson Correlation: 0.85601 with p-value: 0.0 , Concordance Index: 0.86010\n",
      "Training at Epoch 58 iteration 0 with loss 0.16818. Total time 0.91861 hours\n",
      "Training at Epoch 58 iteration 100 with loss 0.18887. Total time 0.92277 hours\n",
      "Training at Epoch 58 iteration 200 with loss 0.15981. Total time 0.92694 hours\n",
      "Training at Epoch 58 iteration 300 with loss 0.20271. Total time 0.93111 hours\n",
      "Validation at Epoch 58 , MSE: 0.18743 , Pearson Correlation: 0.86092 with p-value: 0.0 , Concordance Index: 0.86562\n",
      "Training at Epoch 59 iteration 0 with loss 0.16819. Total time 0.93416 hours\n",
      "Training at Epoch 59 iteration 100 with loss 0.14242. Total time 0.93833 hours\n",
      "Training at Epoch 59 iteration 200 with loss 0.20837. Total time 0.9425 hours\n",
      "Training at Epoch 59 iteration 300 with loss 0.23325. Total time 0.94666 hours\n",
      "Validation at Epoch 59 , MSE: 0.20326 , Pearson Correlation: 0.85355 with p-value: 0.0 , Concordance Index: 0.86315\n",
      "Training at Epoch 60 iteration 0 with loss 0.18010. Total time 0.94972 hours\n",
      "Training at Epoch 60 iteration 100 with loss 0.19053. Total time 0.95388 hours\n",
      "Training at Epoch 60 iteration 200 with loss 0.19449. Total time 0.95805 hours\n",
      "Training at Epoch 60 iteration 300 with loss 0.18957. Total time 0.96194 hours\n",
      "Validation at Epoch 60 , MSE: 0.19825 , Pearson Correlation: 0.86012 with p-value: 0.0 , Concordance Index: 0.86622\n",
      "Training at Epoch 61 iteration 0 with loss 0.16786. Total time 0.965 hours\n",
      "Training at Epoch 61 iteration 100 with loss 0.17035. Total time 0.96916 hours\n",
      "Training at Epoch 61 iteration 200 with loss 0.15228. Total time 0.97333 hours\n",
      "Training at Epoch 61 iteration 300 with loss 0.18276. Total time 0.9775 hours\n",
      "Validation at Epoch 61 , MSE: 0.18987 , Pearson Correlation: 0.86092 with p-value: 0.0 , Concordance Index: 0.86208\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 60 Testing MSE: 0.24964126312341747 , Pearson Correlation: 0.8180197012879232 with p-value: 0.0 , Concordance Index: 0.8086932693356936\n",
      "Training at Epoch 62 iteration 0 with loss 0.19451. Total time 0.98444 hours\n",
      "Training at Epoch 62 iteration 100 with loss 0.17550. Total time 0.98888 hours\n",
      "Training at Epoch 62 iteration 200 with loss 0.16602. Total time 0.99277 hours\n",
      "Training at Epoch 62 iteration 300 with loss 0.12733. Total time 0.99694 hours\n",
      "Validation at Epoch 62 , MSE: 0.18523 , Pearson Correlation: 0.86256 with p-value: 0.0 , Concordance Index: 0.86698\n",
      "Training at Epoch 63 iteration 0 with loss 0.15132. Total time 1.0 hours\n",
      "Training at Epoch 63 iteration 100 with loss 0.23861. Total time 1.00444 hours\n",
      "Training at Epoch 63 iteration 200 with loss 0.17235. Total time 1.00861 hours\n",
      "Training at Epoch 63 iteration 300 with loss 0.19930. Total time 1.0125 hours\n",
      "Validation at Epoch 63 , MSE: 0.18235 , Pearson Correlation: 0.86220 with p-value: 0.0 , Concordance Index: 0.86500\n",
      "Training at Epoch 64 iteration 0 with loss 0.18499. Total time 1.01583 hours\n",
      "Training at Epoch 64 iteration 100 with loss 0.18836. Total time 1.02 hours\n",
      "Training at Epoch 64 iteration 200 with loss 0.17840. Total time 1.02416 hours\n",
      "Training at Epoch 64 iteration 300 with loss 0.14358. Total time 1.02805 hours\n",
      "Validation at Epoch 64 , MSE: 0.18219 , Pearson Correlation: 0.86201 with p-value: 0.0 , Concordance Index: 0.86697\n",
      "Training at Epoch 65 iteration 0 with loss 0.14921. Total time 1.03138 hours\n",
      "Training at Epoch 65 iteration 100 with loss 0.18786. Total time 1.03555 hours\n",
      "Training at Epoch 65 iteration 200 with loss 0.23001. Total time 1.03972 hours\n",
      "Training at Epoch 65 iteration 300 with loss 0.16455. Total time 1.04388 hours\n",
      "Validation at Epoch 65 , MSE: 0.18409 , Pearson Correlation: 0.86203 with p-value: 0.0 , Concordance Index: 0.86922\n",
      "Training at Epoch 66 iteration 0 with loss 0.14286. Total time 1.04694 hours\n",
      "Training at Epoch 66 iteration 100 with loss 0.16608. Total time 1.05083 hours\n",
      "Training at Epoch 66 iteration 200 with loss 0.12295. Total time 1.055 hours\n",
      "Training at Epoch 66 iteration 300 with loss 0.18047. Total time 1.05916 hours\n",
      "Validation at Epoch 66 , MSE: 0.18559 , Pearson Correlation: 0.86060 with p-value: 0.0 , Concordance Index: 0.87086\n",
      "Training at Epoch 67 iteration 0 with loss 0.12793. Total time 1.06222 hours\n",
      "Training at Epoch 67 iteration 100 with loss 0.15712. Total time 1.06611 hours\n",
      "Training at Epoch 67 iteration 200 with loss 0.13163. Total time 1.07027 hours\n",
      "Training at Epoch 67 iteration 300 with loss 0.14561. Total time 1.07444 hours\n",
      "Validation at Epoch 67 , MSE: 0.18218 , Pearson Correlation: 0.86452 with p-value: 0.0 , Concordance Index: 0.87044\n",
      "Training at Epoch 68 iteration 0 with loss 0.14733. Total time 1.0775 hours\n",
      "Training at Epoch 68 iteration 100 with loss 0.14090. Total time 1.08166 hours\n",
      "Training at Epoch 68 iteration 200 with loss 0.16087. Total time 1.08583 hours\n",
      "Training at Epoch 68 iteration 300 with loss 0.19910. Total time 1.08972 hours\n",
      "Validation at Epoch 68 , MSE: 0.18216 , Pearson Correlation: 0.86517 with p-value: 0.0 , Concordance Index: 0.87085\n",
      "Training at Epoch 69 iteration 0 with loss 0.11250. Total time 1.09277 hours\n",
      "Training at Epoch 69 iteration 100 with loss 0.12111. Total time 1.09694 hours\n",
      "Training at Epoch 69 iteration 200 with loss 0.13728. Total time 1.10111 hours\n",
      "Training at Epoch 69 iteration 300 with loss 0.12742. Total time 1.105 hours\n",
      "Validation at Epoch 69 , MSE: 0.18119 , Pearson Correlation: 0.86377 with p-value: 0.0 , Concordance Index: 0.87045\n",
      "Training at Epoch 70 iteration 0 with loss 0.14725. Total time 1.10833 hours\n",
      "Training at Epoch 70 iteration 100 with loss 0.16982. Total time 1.1125 hours\n",
      "Training at Epoch 70 iteration 200 with loss 0.15916. Total time 1.11666 hours\n",
      "Training at Epoch 70 iteration 300 with loss 0.11995. Total time 1.12083 hours\n",
      "Validation at Epoch 70 , MSE: 0.17834 , Pearson Correlation: 0.86570 with p-value: 0.0 , Concordance Index: 0.87283\n",
      "Training at Epoch 71 iteration 0 with loss 0.15899. Total time 1.12388 hours\n",
      "Training at Epoch 71 iteration 100 with loss 0.14263. Total time 1.12805 hours\n",
      "Training at Epoch 71 iteration 200 with loss 0.13393. Total time 1.13222 hours\n",
      "Training at Epoch 71 iteration 300 with loss 0.13730. Total time 1.13638 hours\n",
      "Validation at Epoch 71 , MSE: 0.18599 , Pearson Correlation: 0.86446 with p-value: 0.0 , Concordance Index: 0.87140\n",
      "Training at Epoch 72 iteration 0 with loss 0.15749. Total time 1.13944 hours\n",
      "Training at Epoch 72 iteration 100 with loss 0.14031. Total time 1.14361 hours\n",
      "Training at Epoch 72 iteration 200 with loss 0.12793. Total time 1.1475 hours\n",
      "Training at Epoch 72 iteration 300 with loss 0.15537. Total time 1.15166 hours\n",
      "Validation at Epoch 72 , MSE: 0.17961 , Pearson Correlation: 0.86533 with p-value: 0.0 , Concordance Index: 0.87194\n",
      "Training at Epoch 73 iteration 0 with loss 0.13821. Total time 1.15472 hours\n",
      "Training at Epoch 73 iteration 100 with loss 0.14563. Total time 1.15888 hours\n",
      "Training at Epoch 73 iteration 200 with loss 0.15291. Total time 1.16305 hours\n",
      "Training at Epoch 73 iteration 300 with loss 0.11619. Total time 1.16694 hours\n",
      "Validation at Epoch 73 , MSE: 0.17951 , Pearson Correlation: 0.86566 with p-value: 0.0 , Concordance Index: 0.87200\n",
      "Training at Epoch 74 iteration 0 with loss 0.14750. Total time 1.17027 hours\n",
      "Training at Epoch 74 iteration 100 with loss 0.15043. Total time 1.17416 hours\n",
      "Training at Epoch 74 iteration 200 with loss 0.17081. Total time 1.17833 hours\n",
      "Training at Epoch 74 iteration 300 with loss 0.13177. Total time 1.1825 hours\n",
      "Validation at Epoch 74 , MSE: 0.19077 , Pearson Correlation: 0.86212 with p-value: 0.0 , Concordance Index: 0.87221\n",
      "Training at Epoch 75 iteration 0 with loss 0.15026. Total time 1.18555 hours\n",
      "Training at Epoch 75 iteration 100 with loss 0.12210. Total time 1.18972 hours\n",
      "Training at Epoch 75 iteration 200 with loss 0.13628. Total time 1.19388 hours\n",
      "Training at Epoch 75 iteration 300 with loss 0.14723. Total time 1.19777 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Validation at Epoch 75 , MSE: 0.17590 , Pearson Correlation: 0.86837 with p-value: 0.0 , Concordance Index: 0.87526\n",
      "Training at Epoch 76 iteration 0 with loss 0.14709. Total time 1.20083 hours\n",
      "Training at Epoch 76 iteration 100 with loss 0.12766. Total time 1.205 hours\n",
      "Training at Epoch 76 iteration 200 with loss 0.12838. Total time 1.20916 hours\n",
      "Training at Epoch 76 iteration 300 with loss 0.12437. Total time 1.21333 hours\n",
      "Validation at Epoch 76 , MSE: 0.17790 , Pearson Correlation: 0.86569 with p-value: 0.0 , Concordance Index: 0.87372\n",
      "Training at Epoch 77 iteration 0 with loss 0.12362. Total time 1.21638 hours\n",
      "Training at Epoch 77 iteration 100 with loss 0.09626. Total time 1.22055 hours\n",
      "Training at Epoch 77 iteration 200 with loss 0.16659. Total time 1.22472 hours\n",
      "Training at Epoch 77 iteration 300 with loss 0.13584. Total time 1.22888 hours\n",
      "Validation at Epoch 77 , MSE: 0.18073 , Pearson Correlation: 0.86494 with p-value: 0.0 , Concordance Index: 0.87361\n",
      "Training at Epoch 78 iteration 0 with loss 0.18415. Total time 1.23194 hours\n",
      "Training at Epoch 78 iteration 100 with loss 0.11817. Total time 1.23611 hours\n",
      "Training at Epoch 78 iteration 200 with loss 0.16941. Total time 1.24027 hours\n",
      "Training at Epoch 78 iteration 300 with loss 0.12479. Total time 1.24444 hours\n",
      "Validation at Epoch 78 , MSE: 0.17962 , Pearson Correlation: 0.86547 with p-value: 0.0 , Concordance Index: 0.87497\n",
      "Training at Epoch 79 iteration 0 with loss 0.13630. Total time 1.2475 hours\n",
      "Training at Epoch 79 iteration 100 with loss 0.15061. Total time 1.25166 hours\n",
      "Training at Epoch 79 iteration 200 with loss 0.15700. Total time 1.25583 hours\n",
      "Training at Epoch 79 iteration 300 with loss 0.12185. Total time 1.26 hours\n",
      "Validation at Epoch 79 , MSE: 0.17769 , Pearson Correlation: 0.86672 with p-value: 0.0 , Concordance Index: 0.87451\n",
      "Training at Epoch 80 iteration 0 with loss 0.12281. Total time 1.26305 hours\n",
      "Training at Epoch 80 iteration 100 with loss 0.17405. Total time 1.26722 hours\n",
      "Training at Epoch 80 iteration 200 with loss 0.12664. Total time 1.27138 hours\n",
      "Training at Epoch 80 iteration 300 with loss 0.18895. Total time 1.27555 hours\n",
      "Validation at Epoch 80 , MSE: 0.18591 , Pearson Correlation: 0.86372 with p-value: 0.0 , Concordance Index: 0.87366\n",
      "Training at Epoch 81 iteration 0 with loss 0.11626. Total time 1.27861 hours\n",
      "Training at Epoch 81 iteration 100 with loss 0.15255. Total time 1.28277 hours\n",
      "Training at Epoch 81 iteration 200 with loss 0.13085. Total time 1.28694 hours\n",
      "Training at Epoch 81 iteration 300 with loss 0.14491. Total time 1.29083 hours\n",
      "Validation at Epoch 81 , MSE: 0.17596 , Pearson Correlation: 0.86711 with p-value: 0.0 , Concordance Index: 0.87505\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 80 Testing MSE: 0.22877115574401935 , Pearson Correlation: 0.8221445595944988 with p-value: 0.0 , Concordance Index: 0.8140360824805798\n",
      "Training at Epoch 82 iteration 0 with loss 0.11468. Total time 1.29805 hours\n",
      "Training at Epoch 82 iteration 100 with loss 0.10824. Total time 1.30222 hours\n",
      "Training at Epoch 82 iteration 200 with loss 0.09474. Total time 1.30638 hours\n",
      "Training at Epoch 82 iteration 300 with loss 0.13997. Total time 1.31027 hours\n",
      "Validation at Epoch 82 , MSE: 0.17659 , Pearson Correlation: 0.86688 with p-value: 0.0 , Concordance Index: 0.87650\n",
      "Training at Epoch 83 iteration 0 with loss 0.09839. Total time 1.31333 hours\n",
      "Training at Epoch 83 iteration 100 with loss 0.14165. Total time 1.31777 hours\n",
      "Training at Epoch 83 iteration 200 with loss 0.12103. Total time 1.32166 hours\n",
      "Training at Epoch 83 iteration 300 with loss 0.10962. Total time 1.32583 hours\n",
      "Validation at Epoch 83 , MSE: 0.17666 , Pearson Correlation: 0.86739 with p-value: 0.0 , Concordance Index: 0.87450\n",
      "Training at Epoch 84 iteration 0 with loss 0.11652. Total time 1.32888 hours\n",
      "Training at Epoch 84 iteration 100 with loss 0.13037. Total time 1.33305 hours\n",
      "Training at Epoch 84 iteration 200 with loss 0.11095. Total time 1.33722 hours\n",
      "Training at Epoch 84 iteration 300 with loss 0.12893. Total time 1.34138 hours\n",
      "Validation at Epoch 84 , MSE: 0.17926 , Pearson Correlation: 0.86649 with p-value: 0.0 , Concordance Index: 0.87441\n",
      "Training at Epoch 85 iteration 0 with loss 0.14388. Total time 1.34444 hours\n",
      "Training at Epoch 85 iteration 100 with loss 0.12095. Total time 1.34833 hours\n",
      "Training at Epoch 85 iteration 200 with loss 0.15611. Total time 1.3525 hours\n",
      "Training at Epoch 85 iteration 300 with loss 0.12247. Total time 1.35638 hours\n",
      "Validation at Epoch 85 , MSE: 0.17730 , Pearson Correlation: 0.86691 with p-value: 0.0 , Concordance Index: 0.87267\n",
      "Training at Epoch 86 iteration 0 with loss 0.20337. Total time 1.35944 hours\n",
      "Training at Epoch 86 iteration 100 with loss 0.10780. Total time 1.36361 hours\n",
      "Training at Epoch 86 iteration 200 with loss 0.12183. Total time 1.3675 hours\n",
      "Training at Epoch 86 iteration 300 with loss 0.11885. Total time 1.37166 hours\n",
      "Validation at Epoch 86 , MSE: 0.17632 , Pearson Correlation: 0.86757 with p-value: 0.0 , Concordance Index: 0.87567\n",
      "Training at Epoch 87 iteration 0 with loss 0.10482. Total time 1.37472 hours\n",
      "Training at Epoch 87 iteration 100 with loss 0.10125. Total time 1.37888 hours\n",
      "Training at Epoch 87 iteration 200 with loss 0.14040. Total time 1.38305 hours\n",
      "Training at Epoch 87 iteration 300 with loss 0.13114. Total time 1.38722 hours\n",
      "Validation at Epoch 87 , MSE: 0.17264 , Pearson Correlation: 0.87055 with p-value: 0.0 , Concordance Index: 0.87715\n",
      "Training at Epoch 88 iteration 0 with loss 0.14052. Total time 1.39027 hours\n",
      "Training at Epoch 88 iteration 100 with loss 0.10920. Total time 1.39444 hours\n",
      "Training at Epoch 88 iteration 200 with loss 0.12912. Total time 1.39861 hours\n",
      "Training at Epoch 88 iteration 300 with loss 0.11565. Total time 1.40277 hours\n",
      "Validation at Epoch 88 , MSE: 0.17861 , Pearson Correlation: 0.86794 with p-value: 0.0 , Concordance Index: 0.87587\n",
      "Training at Epoch 89 iteration 0 with loss 0.08597. Total time 1.40583 hours\n",
      "Training at Epoch 89 iteration 100 with loss 0.13055. Total time 1.41 hours\n",
      "Training at Epoch 89 iteration 200 with loss 0.11515. Total time 1.41388 hours\n",
      "Training at Epoch 89 iteration 300 with loss 0.10663. Total time 1.41805 hours\n",
      "Validation at Epoch 89 , MSE: 0.18055 , Pearson Correlation: 0.86495 with p-value: 0.0 , Concordance Index: 0.87558\n",
      "Training at Epoch 90 iteration 0 with loss 0.11052. Total time 1.42111 hours\n",
      "Training at Epoch 90 iteration 100 with loss 0.12562. Total time 1.42527 hours\n",
      "Training at Epoch 90 iteration 200 with loss 0.12250. Total time 1.42944 hours\n",
      "Training at Epoch 90 iteration 300 with loss 0.12362. Total time 1.43361 hours\n",
      "Validation at Epoch 90 , MSE: 0.17772 , Pearson Correlation: 0.86746 with p-value: 0.0 , Concordance Index: 0.87448\n",
      "Training at Epoch 91 iteration 0 with loss 0.09876. Total time 1.43666 hours\n",
      "Training at Epoch 91 iteration 100 with loss 0.09919. Total time 1.44083 hours\n",
      "Training at Epoch 91 iteration 200 with loss 0.10991. Total time 1.44472 hours\n",
      "Training at Epoch 91 iteration 300 with loss 0.09660. Total time 1.44888 hours\n",
      "Validation at Epoch 91 , MSE: 0.17294 , Pearson Correlation: 0.86970 with p-value: 0.0 , Concordance Index: 0.87621\n",
      "Training at Epoch 92 iteration 0 with loss 0.08833. Total time 1.45194 hours\n",
      "Training at Epoch 92 iteration 100 with loss 0.12159. Total time 1.45638 hours\n",
      "Training at Epoch 92 iteration 200 with loss 0.09911. Total time 1.46055 hours\n",
      "Training at Epoch 92 iteration 300 with loss 0.09983. Total time 1.46472 hours\n",
      "Validation at Epoch 92 , MSE: 0.17706 , Pearson Correlation: 0.87080 with p-value: 0.0 , Concordance Index: 0.87709\n",
      "Training at Epoch 93 iteration 0 with loss 0.11211. Total time 1.46777 hours\n",
      "Training at Epoch 93 iteration 100 with loss 0.12270. Total time 1.47222 hours\n",
      "Training at Epoch 93 iteration 200 with loss 0.13227. Total time 1.47638 hours\n",
      "Training at Epoch 93 iteration 300 with loss 0.12919. Total time 1.48055 hours\n",
      "Validation at Epoch 93 , MSE: 0.17960 , Pearson Correlation: 0.86668 with p-value: 0.0 , Concordance Index: 0.87525\n",
      "Training at Epoch 94 iteration 0 with loss 0.09262. Total time 1.48361 hours\n",
      "Training at Epoch 94 iteration 100 with loss 0.08977. Total time 1.48805 hours\n",
      "Training at Epoch 94 iteration 200 with loss 0.11417. Total time 1.49222 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 94 iteration 300 with loss 0.11380. Total time 1.49638 hours\n",
      "Validation at Epoch 94 , MSE: 0.17844 , Pearson Correlation: 0.86641 with p-value: 0.0 , Concordance Index: 0.87474\n",
      "Training at Epoch 95 iteration 0 with loss 0.09569. Total time 1.49944 hours\n",
      "Training at Epoch 95 iteration 100 with loss 0.16455. Total time 1.50361 hours\n",
      "Training at Epoch 95 iteration 200 with loss 0.11316. Total time 1.50805 hours\n",
      "Training at Epoch 95 iteration 300 with loss 0.11650. Total time 1.51194 hours\n",
      "Validation at Epoch 95 , MSE: 0.18050 , Pearson Correlation: 0.86382 with p-value: 0.0 , Concordance Index: 0.87502\n",
      "Training at Epoch 96 iteration 0 with loss 0.10995. Total time 1.515 hours\n",
      "Training at Epoch 96 iteration 100 with loss 0.14300. Total time 1.51944 hours\n",
      "Training at Epoch 96 iteration 200 with loss 0.10502. Total time 1.52361 hours\n",
      "Training at Epoch 96 iteration 300 with loss 0.11256. Total time 1.5275 hours\n",
      "Validation at Epoch 96 , MSE: 0.17599 , Pearson Correlation: 0.86887 with p-value: 0.0 , Concordance Index: 0.87720\n",
      "Training at Epoch 97 iteration 0 with loss 0.11762. Total time 1.53055 hours\n",
      "Training at Epoch 97 iteration 100 with loss 0.12299. Total time 1.53472 hours\n",
      "Training at Epoch 97 iteration 200 with loss 0.10144. Total time 1.53888 hours\n",
      "Training at Epoch 97 iteration 300 with loss 0.12482. Total time 1.54305 hours\n",
      "Validation at Epoch 97 , MSE: 0.17924 , Pearson Correlation: 0.86971 with p-value: 0.0 , Concordance Index: 0.87553\n",
      "Training at Epoch 98 iteration 0 with loss 0.10720. Total time 1.54611 hours\n",
      "Training at Epoch 98 iteration 100 with loss 0.12492. Total time 1.55027 hours\n",
      "Training at Epoch 98 iteration 200 with loss 0.11592. Total time 1.55444 hours\n",
      "Training at Epoch 98 iteration 300 with loss 0.12365. Total time 1.55833 hours\n",
      "Validation at Epoch 98 , MSE: 0.17875 , Pearson Correlation: 0.86542 with p-value: 0.0 , Concordance Index: 0.87533\n",
      "Training at Epoch 99 iteration 0 with loss 0.08179. Total time 1.56138 hours\n",
      "Training at Epoch 99 iteration 100 with loss 0.10345. Total time 1.56555 hours\n",
      "Training at Epoch 99 iteration 200 with loss 0.11655. Total time 1.56972 hours\n",
      "Training at Epoch 99 iteration 300 with loss 0.09711. Total time 1.57388 hours\n",
      "Validation at Epoch 99 , MSE: 0.18291 , Pearson Correlation: 0.86791 with p-value: 0.0 , Concordance Index: 0.87619\n",
      "Training at Epoch 100 iteration 0 with loss 0.10911. Total time 1.57694 hours\n",
      "Training at Epoch 100 iteration 100 with loss 0.08498. Total time 1.58111 hours\n",
      "Training at Epoch 100 iteration 200 with loss 0.10329. Total time 1.58527 hours\n",
      "Training at Epoch 100 iteration 300 with loss 0.08983. Total time 1.58944 hours\n",
      "Validation at Epoch 100 , MSE: 0.18392 , Pearson Correlation: 0.87005 with p-value: 0.0 , Concordance Index: 0.87931\n",
      "--- Go for Testing ---\n",
      "Testing MSE: 0.22726939122283618 , Pearson Correlation: 0.840485449639142 with p-value: 0.0 , Concordance Index: 0.8282639758533674\n",
      "--- Training Finished ---\n"
     ]
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYoAAAELCAYAAADHksFtAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjMsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+AADFEAAAbpklEQVR4nO3de7xcZX3v8c83F4EYWhITkALJlkupQD0x7nLwAihYubQajq0Wzz4SLp5IAy+hteccNMcaK1FaX17wlIsR0aBbERErSkQRBMu9OwgBp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AOiYhVeb/bSGHxXuBTW3gfs834iMKs0huBPwAGJU0q/ZD6Nv6TNGVquZurQwIgn/r5maQNwEukwQb/GNi3et8tkfRKUqf7t2NkUhwizYh2A3Bo1VNWlUIi77eOdEQzC7Mx8BGFWaXSTHA/rbP9yar1zU4V5UtulwM/Jh1BrAU2ka5i2n4MNU0jjfpa67TUr4HZVW21pnR9fozvbeagMKuyIT8eTzpVVO2ZqvVawy//Feko4t0R8WKpMU/p+dQYanoyv8+ra2x7NSM1m7WEg8J61fP5cYeq9htJYbB3RCwb42tPIR1B/D5EJB1GOvXzQNl+9WqoEBG/k7QCeI+kxRGxKb/mbOBNwP8bY51mDXFQWK96jPSX+LGSVgK/Ax6IiA2S/hdwjqSZpBndniZdxXQocG1EfHMLr30lcDrwNUlfJfVNfAx4pGq/X+bHUyQtI/VjrKxzH8bHSFc9/VDSucBU0pVWTzMyp7RZS7gz23pSpPmYP0A6//9T0nSf78zbvgS8i9Tx/HVSWHyC9IfV7Q289o+BDwFvBn5ImjnuONLsZuX73QEszu97fa7hj+q85pWkezR2Ai4hTbN5D/CWyPOqm7WKZ7gzM7NCPqIwM7NCDgozMyvkoDAzs0IOCjMzK+SgMDOzQg4KMzMr5KAwM7NCDgozMyv0/wF+AfZk6GakBwAAAABJRU5ErkJggg==\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "drug_encoding = 'Morgan'\n",
    "target_encoding = 'AAC'\n",
    "train, val, test = data_process(X_drug, X_target, y, \n",
    "                                drug_encoding, target_encoding, \n",
    "                                split_method='random',frac=[0.7,0.1,0.2], random_seed = 3)\n",
    "\n",
    "config = generate_config(drug_encoding = drug_encoding, \n",
    "                         target_encoding = target_encoding, \n",
    "                         cls_hidden_dims = [1024,1024,512], \n",
    "                         train_epoch = 100, \n",
    "                         LR = 0.001, \n",
    "                         batch_size = 256\n",
    "                        )\n",
    "model = models.model_initialize(**config)\n",
    "model.train(train, val, test)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "in total: 118254 drug-target pairs\n",
      "encoding drug...\n",
      "unique drugs: 2068\n",
      "drug encoding finished...\n",
      "encoding protein...\n",
      "unique target sequence: 229\n",
      "-- Encoding AAC takes time. Time Reference: 24s for ~100 sequences in a CPU. Calculate your time by the unique target sequence #, instead of the entire dataset.\n",
      "protein encoding finished...\n",
      "splitting dataset...\n",
      "Done.\n",
      "Let's use 1 GPU!\n",
      "--- Data Preparation ---\n",
      "--- Go for Training ---\n",
      "Training at Epoch 1 iteration 0 with loss 139.143. Total time 0.0 hours\n",
      "Training at Epoch 1 iteration 100 with loss 0.75925. Total time 0.00416 hours\n",
      "Training at Epoch 1 iteration 200 with loss 0.67357. Total time 0.00861 hours\n",
      "Training at Epoch 1 iteration 300 with loss 0.96372. Total time 0.01277 hours\n",
      "Validation at Epoch 1 , MSE: 0.40069 , Pearson Correlation: 0.64013 with p-value: 0.0 , Concordance Index: 0.75161\n",
      "Training at Epoch 2 iteration 0 with loss 0.58299. Total time 0.01583 hours\n",
      "Training at Epoch 2 iteration 100 with loss 0.76222. Total time 0.02 hours\n",
      "Training at Epoch 2 iteration 200 with loss 0.71644. Total time 0.02416 hours\n",
      "Training at Epoch 2 iteration 300 with loss 0.59185. Total time 0.02833 hours\n",
      "Validation at Epoch 2 , MSE: 0.47030 , Pearson Correlation: 0.65798 with p-value: 0.0 , Concordance Index: 0.76035\n",
      "Training at Epoch 3 iteration 0 with loss 0.52895. Total time 0.03138 hours\n",
      "Training at Epoch 3 iteration 100 with loss 0.67837. Total time 0.03555 hours\n",
      "Training at Epoch 3 iteration 200 with loss 0.57371. Total time 0.03972 hours\n",
      "Training at Epoch 3 iteration 300 with loss 0.66708. Total time 0.04388 hours\n",
      "Validation at Epoch 3 , MSE: 0.39715 , Pearson Correlation: 0.65982 with p-value: 0.0 , Concordance Index: 0.75657\n",
      "Training at Epoch 4 iteration 0 with loss 0.50166. Total time 0.04722 hours\n",
      "Training at Epoch 4 iteration 100 with loss 0.57565. Total time 0.05138 hours\n",
      "Training at Epoch 4 iteration 200 with loss 0.60669. Total time 0.05555 hours\n",
      "Training at Epoch 4 iteration 300 with loss 0.56017. Total time 0.05972 hours\n",
      "Validation at Epoch 4 , MSE: 0.48859 , Pearson Correlation: 0.67031 with p-value: 0.0 , Concordance Index: 0.76514\n",
      "Training at Epoch 5 iteration 0 with loss 0.56064. Total time 0.06277 hours\n",
      "Training at Epoch 5 iteration 100 with loss 0.64202. Total time 0.06694 hours\n",
      "Training at Epoch 5 iteration 200 with loss 0.44923. Total time 0.07111 hours\n",
      "Training at Epoch 5 iteration 300 with loss 0.53049. Total time 0.07527 hours\n",
      "Validation at Epoch 5 , MSE: 0.36030 , Pearson Correlation: 0.69039 with p-value: 0.0 , Concordance Index: 0.77330\n",
      "Training at Epoch 6 iteration 0 with loss 0.52047. Total time 0.07833 hours\n",
      "Training at Epoch 6 iteration 100 with loss 0.45338. Total time 0.0825 hours\n",
      "Training at Epoch 6 iteration 200 with loss 0.57608. Total time 0.08666 hours\n",
      "Training at Epoch 6 iteration 300 with loss 0.40846. Total time 0.09083 hours\n",
      "Validation at Epoch 6 , MSE: 0.35947 , Pearson Correlation: 0.70875 with p-value: 0.0 , Concordance Index: 0.77752\n",
      "Training at Epoch 7 iteration 0 with loss 0.47948. Total time 0.09388 hours\n",
      "Training at Epoch 7 iteration 100 with loss 0.39715. Total time 0.09805 hours\n",
      "Training at Epoch 7 iteration 200 with loss 0.50947. Total time 0.10222 hours\n",
      "Training at Epoch 7 iteration 300 with loss 0.79538. Total time 0.10638 hours\n",
      "Validation at Epoch 7 , MSE: 0.74371 , Pearson Correlation: 0.73368 with p-value: 0.0 , Concordance Index: 0.78882\n",
      "Training at Epoch 8 iteration 0 with loss 1.02690. Total time 0.10944 hours\n",
      "Training at Epoch 8 iteration 100 with loss 0.44971. Total time 0.11361 hours\n",
      "Training at Epoch 8 iteration 200 with loss 0.53998. Total time 0.11777 hours\n",
      "Training at Epoch 8 iteration 300 with loss 0.38806. Total time 0.12194 hours\n",
      "Validation at Epoch 8 , MSE: 0.48601 , Pearson Correlation: 0.74319 with p-value: 0.0 , Concordance Index: 0.79670\n",
      "Training at Epoch 9 iteration 0 with loss 0.65233. Total time 0.12527 hours\n",
      "Training at Epoch 9 iteration 100 with loss 0.44369. Total time 0.12944 hours\n",
      "Training at Epoch 9 iteration 200 with loss 0.58593. Total time 0.13361 hours\n",
      "Training at Epoch 9 iteration 300 with loss 0.29352. Total time 0.13777 hours\n",
      "Validation at Epoch 9 , MSE: 0.29080 , Pearson Correlation: 0.75549 with p-value: 0.0 , Concordance Index: 0.79778\n",
      "Training at Epoch 10 iteration 0 with loss 0.39419. Total time 0.14083 hours\n",
      "Training at Epoch 10 iteration 100 with loss 0.45890. Total time 0.145 hours\n",
      "Training at Epoch 10 iteration 200 with loss 0.44224. Total time 0.14916 hours\n",
      "Training at Epoch 10 iteration 300 with loss 0.56705. Total time 0.15333 hours\n",
      "Validation at Epoch 10 , MSE: 0.30884 , Pearson Correlation: 0.75270 with p-value: 0.0 , Concordance Index: 0.79380\n",
      "Training at Epoch 11 iteration 0 with loss 0.51839. Total time 0.15638 hours\n",
      "Training at Epoch 11 iteration 100 with loss 0.40119. Total time 0.16055 hours\n",
      "Training at Epoch 11 iteration 200 with loss 0.47091. Total time 0.16472 hours\n",
      "Training at Epoch 11 iteration 300 with loss 0.49721. Total time 0.16888 hours\n",
      "Validation at Epoch 11 , MSE: 0.28277 , Pearson Correlation: 0.76366 with p-value: 0.0 , Concordance Index: 0.80180\n",
      "Training at Epoch 12 iteration 0 with loss 0.38999. Total time 0.17194 hours\n",
      "Training at Epoch 12 iteration 100 with loss 0.49834. Total time 0.17611 hours\n",
      "Training at Epoch 12 iteration 200 with loss 0.49024. Total time 0.18027 hours\n",
      "Training at Epoch 12 iteration 300 with loss 0.42220. Total time 0.18416 hours\n",
      "Validation at Epoch 12 , MSE: 0.29218 , Pearson Correlation: 0.76898 with p-value: 0.0 , Concordance Index: 0.81061\n",
      "Training at Epoch 13 iteration 0 with loss 0.37770. Total time 0.1875 hours\n",
      "Training at Epoch 13 iteration 100 with loss 0.38023. Total time 0.19166 hours\n",
      "Training at Epoch 13 iteration 200 with loss 0.42180. Total time 0.19555 hours\n",
      "Training at Epoch 13 iteration 300 with loss 0.41246. Total time 0.19972 hours\n",
      "Validation at Epoch 13 , MSE: 0.32417 , Pearson Correlation: 0.76936 with p-value: 0.0 , Concordance Index: 0.80701\n",
      "Training at Epoch 14 iteration 0 with loss 0.43396. Total time 0.20277 hours\n",
      "Training at Epoch 14 iteration 100 with loss 0.46825. Total time 0.20694 hours\n",
      "Training at Epoch 14 iteration 200 with loss 0.44817. Total time 0.21083 hours\n",
      "Training at Epoch 14 iteration 300 with loss 0.41103. Total time 0.215 hours\n",
      "Validation at Epoch 14 , MSE: 0.29169 , Pearson Correlation: 0.77163 with p-value: 0.0 , Concordance Index: 0.81370\n",
      "Training at Epoch 15 iteration 0 with loss 0.37179. Total time 0.21805 hours\n",
      "Training at Epoch 15 iteration 100 with loss 0.41016. Total time 0.22222 hours\n",
      "Training at Epoch 15 iteration 200 with loss 0.36060. Total time 0.22638 hours\n",
      "Training at Epoch 15 iteration 300 with loss 0.51104. Total time 0.23055 hours\n",
      "Validation at Epoch 15 , MSE: 0.41041 , Pearson Correlation: 0.77282 with p-value: 0.0 , Concordance Index: 0.80988\n",
      "Training at Epoch 16 iteration 0 with loss 0.39689. Total time 0.23361 hours\n",
      "Training at Epoch 16 iteration 100 with loss 0.33304. Total time 0.23777 hours\n",
      "Training at Epoch 16 iteration 200 with loss 0.33638. Total time 0.24166 hours\n",
      "Training at Epoch 16 iteration 300 with loss 0.55474. Total time 0.24583 hours\n",
      "Validation at Epoch 16 , MSE: 0.27267 , Pearson Correlation: 0.77513 with p-value: 0.0 , Concordance Index: 0.81429\n",
      "Training at Epoch 17 iteration 0 with loss 0.41982. Total time 0.24888 hours\n",
      "Training at Epoch 17 iteration 100 with loss 0.38938. Total time 0.25305 hours\n",
      "Training at Epoch 17 iteration 200 with loss 0.41549. Total time 0.25722 hours\n",
      "Training at Epoch 17 iteration 300 with loss 0.42582. Total time 0.26111 hours\n",
      "Validation at Epoch 17 , MSE: 0.29723 , Pearson Correlation: 0.77823 with p-value: 0.0 , Concordance Index: 0.81525\n",
      "Training at Epoch 18 iteration 0 with loss 0.35514. Total time 0.26416 hours\n",
      "Training at Epoch 18 iteration 100 with loss 0.40214. Total time 0.26833 hours\n",
      "Training at Epoch 18 iteration 200 with loss 0.41425. Total time 0.2725 hours\n",
      "Training at Epoch 18 iteration 300 with loss 0.42780. Total time 0.27666 hours\n",
      "Validation at Epoch 18 , MSE: 0.35970 , Pearson Correlation: 0.78259 with p-value: 0.0 , Concordance Index: 0.81659\n",
      "Training at Epoch 19 iteration 0 with loss 0.51772. Total time 0.27972 hours\n",
      "Training at Epoch 19 iteration 100 with loss 0.37778. Total time 0.28388 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 19 iteration 200 with loss 0.31342. Total time 0.28777 hours\n",
      "Training at Epoch 19 iteration 300 with loss 0.42537. Total time 0.29194 hours\n",
      "Validation at Epoch 19 , MSE: 0.27230 , Pearson Correlation: 0.78650 with p-value: 0.0 , Concordance Index: 0.81740\n",
      "Training at Epoch 20 iteration 0 with loss 0.38727. Total time 0.295 hours\n",
      "Training at Epoch 20 iteration 100 with loss 0.22608. Total time 0.29916 hours\n",
      "Training at Epoch 20 iteration 200 with loss 0.36076. Total time 0.30333 hours\n",
      "Training at Epoch 20 iteration 300 with loss 0.44369. Total time 0.30722 hours\n",
      "Validation at Epoch 20 , MSE: 0.30142 , Pearson Correlation: 0.78537 with p-value: 0.0 , Concordance Index: 0.82011\n",
      "Training at Epoch 21 iteration 0 with loss 0.34219. Total time 0.31027 hours\n",
      "Training at Epoch 21 iteration 100 with loss 0.29809. Total time 0.31416 hours\n",
      "Training at Epoch 21 iteration 200 with loss 0.42696. Total time 0.31805 hours\n",
      "Training at Epoch 21 iteration 300 with loss 0.59472. Total time 0.32222 hours\n",
      "Validation at Epoch 21 , MSE: 0.27474 , Pearson Correlation: 0.78680 with p-value: 0.0 , Concordance Index: 0.81825\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 20 Testing MSE: 0.387081242984944 , Pearson Correlation: 0.701919311034704 with p-value: 0.0 , Concordance Index: 0.7455143444074692\n",
      "Training at Epoch 22 iteration 0 with loss 0.26543. Total time 0.32916 hours\n",
      "Training at Epoch 22 iteration 100 with loss 0.35822. Total time 0.33305 hours\n",
      "Training at Epoch 22 iteration 200 with loss 0.41851. Total time 0.33722 hours\n",
      "Training at Epoch 22 iteration 300 with loss 0.35218. Total time 0.34111 hours\n",
      "Validation at Epoch 22 , MSE: 0.26617 , Pearson Correlation: 0.78994 with p-value: 0.0 , Concordance Index: 0.82039\n",
      "Training at Epoch 23 iteration 0 with loss 0.36920. Total time 0.34416 hours\n",
      "Training at Epoch 23 iteration 100 with loss 0.37356. Total time 0.34805 hours\n",
      "Training at Epoch 23 iteration 200 with loss 0.32240. Total time 0.35222 hours\n",
      "Training at Epoch 23 iteration 300 with loss 0.43182. Total time 0.35611 hours\n",
      "Validation at Epoch 23 , MSE: 0.28764 , Pearson Correlation: 0.78802 with p-value: 0.0 , Concordance Index: 0.82060\n",
      "Training at Epoch 24 iteration 0 with loss 0.37052. Total time 0.35916 hours\n",
      "Training at Epoch 24 iteration 100 with loss 0.31586. Total time 0.36305 hours\n",
      "Training at Epoch 24 iteration 200 with loss 0.37079. Total time 0.36694 hours\n",
      "Training at Epoch 24 iteration 300 with loss 0.40358. Total time 0.37111 hours\n",
      "Validation at Epoch 24 , MSE: 0.25679 , Pearson Correlation: 0.79560 with p-value: 0.0 , Concordance Index: 0.82148\n",
      "Training at Epoch 25 iteration 0 with loss 0.40416. Total time 0.37416 hours\n",
      "Training at Epoch 25 iteration 100 with loss 0.29535. Total time 0.37805 hours\n",
      "Training at Epoch 25 iteration 200 with loss 0.35482. Total time 0.38222 hours\n",
      "Training at Epoch 25 iteration 300 with loss 0.32679. Total time 0.38611 hours\n",
      "Validation at Epoch 25 , MSE: 0.25481 , Pearson Correlation: 0.79889 with p-value: 0.0 , Concordance Index: 0.82676\n",
      "Training at Epoch 26 iteration 0 with loss 0.33234. Total time 0.38916 hours\n",
      "Training at Epoch 26 iteration 100 with loss 0.24491. Total time 0.39305 hours\n",
      "Training at Epoch 26 iteration 200 with loss 0.27875. Total time 0.39694 hours\n",
      "Training at Epoch 26 iteration 300 with loss 0.28515. Total time 0.40111 hours\n",
      "Validation at Epoch 26 , MSE: 0.24530 , Pearson Correlation: 0.79942 with p-value: 0.0 , Concordance Index: 0.82314\n",
      "Training at Epoch 27 iteration 0 with loss 0.30329. Total time 0.40416 hours\n",
      "Training at Epoch 27 iteration 100 with loss 0.31059. Total time 0.40805 hours\n",
      "Training at Epoch 27 iteration 200 with loss 0.28219. Total time 0.41222 hours\n",
      "Training at Epoch 27 iteration 300 with loss 0.37380. Total time 0.41611 hours\n",
      "Validation at Epoch 27 , MSE: 0.24990 , Pearson Correlation: 0.80214 with p-value: 0.0 , Concordance Index: 0.82160\n",
      "Training at Epoch 28 iteration 0 with loss 0.24756. Total time 0.41916 hours\n",
      "Training at Epoch 28 iteration 100 with loss 0.21769. Total time 0.42305 hours\n",
      "Training at Epoch 28 iteration 200 with loss 0.31789. Total time 0.42694 hours\n",
      "Training at Epoch 28 iteration 300 with loss 0.26400. Total time 0.43111 hours\n",
      "Validation at Epoch 28 , MSE: 0.25489 , Pearson Correlation: 0.81452 with p-value: 0.0 , Concordance Index: 0.83120\n",
      "Training at Epoch 29 iteration 0 with loss 0.24632. Total time 0.43388 hours\n",
      "Training at Epoch 29 iteration 100 with loss 0.35813. Total time 0.43805 hours\n",
      "Training at Epoch 29 iteration 200 with loss 0.30823. Total time 0.44194 hours\n",
      "Training at Epoch 29 iteration 300 with loss 0.30816. Total time 0.44583 hours\n",
      "Validation at Epoch 29 , MSE: 0.23568 , Pearson Correlation: 0.81689 with p-value: 0.0 , Concordance Index: 0.83071\n",
      "Training at Epoch 30 iteration 0 with loss 0.23214. Total time 0.44888 hours\n",
      "Training at Epoch 30 iteration 100 with loss 0.30639. Total time 0.45305 hours\n",
      "Training at Epoch 30 iteration 200 with loss 0.35283. Total time 0.45694 hours\n",
      "Training at Epoch 30 iteration 300 with loss 0.24411. Total time 0.46083 hours\n",
      "Validation at Epoch 30 , MSE: 0.24517 , Pearson Correlation: 0.81933 with p-value: 0.0 , Concordance Index: 0.83606\n",
      "Training at Epoch 31 iteration 0 with loss 0.37703. Total time 0.46388 hours\n",
      "Training at Epoch 31 iteration 100 with loss 0.21486. Total time 0.46805 hours\n",
      "Training at Epoch 31 iteration 200 with loss 0.32303. Total time 0.47194 hours\n",
      "Training at Epoch 31 iteration 300 with loss 0.29615. Total time 0.47583 hours\n",
      "Validation at Epoch 31 , MSE: 0.22069 , Pearson Correlation: 0.82206 with p-value: 0.0 , Concordance Index: 0.83796\n",
      "Training at Epoch 32 iteration 0 with loss 0.28292. Total time 0.47888 hours\n",
      "Training at Epoch 32 iteration 100 with loss 0.31287. Total time 0.48305 hours\n",
      "Training at Epoch 32 iteration 200 with loss 0.23992. Total time 0.48694 hours\n",
      "Training at Epoch 32 iteration 300 with loss 0.32815. Total time 0.49111 hours\n",
      "Validation at Epoch 32 , MSE: 0.21925 , Pearson Correlation: 0.82577 with p-value: 0.0 , Concordance Index: 0.84131\n",
      "Training at Epoch 33 iteration 0 with loss 0.30290. Total time 0.49388 hours\n",
      "Training at Epoch 33 iteration 100 with loss 0.26112. Total time 0.49805 hours\n",
      "Training at Epoch 33 iteration 200 with loss 0.32307. Total time 0.50222 hours\n",
      "Training at Epoch 33 iteration 300 with loss 0.29589. Total time 0.50611 hours\n",
      "Validation at Epoch 33 , MSE: 0.30190 , Pearson Correlation: 0.82511 with p-value: 0.0 , Concordance Index: 0.83841\n",
      "Training at Epoch 34 iteration 0 with loss 0.26363. Total time 0.50916 hours\n",
      "Training at Epoch 34 iteration 100 with loss 0.24935. Total time 0.51305 hours\n",
      "Training at Epoch 34 iteration 200 with loss 0.28952. Total time 0.51722 hours\n",
      "Training at Epoch 34 iteration 300 with loss 0.25864. Total time 0.52111 hours\n",
      "Validation at Epoch 34 , MSE: 0.22676 , Pearson Correlation: 0.82210 with p-value: 0.0 , Concordance Index: 0.84050\n",
      "Training at Epoch 35 iteration 0 with loss 0.27134. Total time 0.52416 hours\n",
      "Training at Epoch 35 iteration 100 with loss 0.26519. Total time 0.52805 hours\n",
      "Training at Epoch 35 iteration 200 with loss 0.25041. Total time 0.53222 hours\n",
      "Training at Epoch 35 iteration 300 with loss 0.33741. Total time 0.53611 hours\n",
      "Validation at Epoch 35 , MSE: 0.21141 , Pearson Correlation: 0.82955 with p-value: 0.0 , Concordance Index: 0.84155\n",
      "Training at Epoch 36 iteration 0 with loss 0.22129. Total time 0.53916 hours\n",
      "Training at Epoch 36 iteration 100 with loss 0.25257. Total time 0.54305 hours\n",
      "Training at Epoch 36 iteration 200 with loss 0.25129. Total time 0.54722 hours\n",
      "Training at Epoch 36 iteration 300 with loss 0.24400. Total time 0.55111 hours\n",
      "Validation at Epoch 36 , MSE: 0.21207 , Pearson Correlation: 0.83078 with p-value: 0.0 , Concordance Index: 0.84706\n",
      "Training at Epoch 37 iteration 0 with loss 0.23748. Total time 0.55416 hours\n",
      "Training at Epoch 37 iteration 100 with loss 0.32215. Total time 0.55805 hours\n",
      "Training at Epoch 37 iteration 200 with loss 0.23680. Total time 0.56222 hours\n",
      "Training at Epoch 37 iteration 300 with loss 0.33312. Total time 0.56611 hours\n",
      "Validation at Epoch 37 , MSE: 0.22193 , Pearson Correlation: 0.82766 with p-value: 0.0 , Concordance Index: 0.84518\n",
      "Training at Epoch 38 iteration 0 with loss 0.30152. Total time 0.56916 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 38 iteration 100 with loss 0.28821. Total time 0.57305 hours\n",
      "Training at Epoch 38 iteration 200 with loss 0.22315. Total time 0.57694 hours\n",
      "Training at Epoch 38 iteration 300 with loss 0.22784. Total time 0.58111 hours\n",
      "Validation at Epoch 38 , MSE: 0.21398 , Pearson Correlation: 0.83364 with p-value: 0.0 , Concordance Index: 0.84784\n",
      "Training at Epoch 39 iteration 0 with loss 0.23520. Total time 0.58388 hours\n",
      "Training at Epoch 39 iteration 100 with loss 0.29446. Total time 0.58805 hours\n",
      "Training at Epoch 39 iteration 200 with loss 0.29278. Total time 0.59222 hours\n",
      "Training at Epoch 39 iteration 300 with loss 0.21035. Total time 0.59611 hours\n",
      "Validation at Epoch 39 , MSE: 0.24761 , Pearson Correlation: 0.84218 with p-value: 0.0 , Concordance Index: 0.85050\n",
      "Training at Epoch 40 iteration 0 with loss 0.32591. Total time 0.59916 hours\n",
      "Training at Epoch 40 iteration 100 with loss 0.19748. Total time 0.60305 hours\n",
      "Training at Epoch 40 iteration 200 with loss 0.31525. Total time 0.60722 hours\n",
      "Training at Epoch 40 iteration 300 with loss 0.26686. Total time 0.61111 hours\n",
      "Validation at Epoch 40 , MSE: 0.21309 , Pearson Correlation: 0.83094 with p-value: 0.0 , Concordance Index: 0.84468\n",
      "Training at Epoch 41 iteration 0 with loss 0.26820. Total time 0.61416 hours\n",
      "Training at Epoch 41 iteration 100 with loss 0.26751. Total time 0.61805 hours\n",
      "Training at Epoch 41 iteration 200 with loss 0.22348. Total time 0.62222 hours\n",
      "Training at Epoch 41 iteration 300 with loss 0.25168. Total time 0.62611 hours\n",
      "Validation at Epoch 41 , MSE: 0.21275 , Pearson Correlation: 0.83794 with p-value: 0.0 , Concordance Index: 0.84876\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 40 Testing MSE: 0.30713186340795595 , Pearson Correlation: 0.76774235520918 with p-value: 0.0 , Concordance Index: 0.7791088982027016\n",
      "Training at Epoch 42 iteration 0 with loss 0.22274. Total time 0.63305 hours\n",
      "Training at Epoch 42 iteration 100 with loss 0.26475. Total time 0.63694 hours\n",
      "Training at Epoch 42 iteration 200 with loss 0.29581. Total time 0.64111 hours\n",
      "Training at Epoch 42 iteration 300 with loss 0.27414. Total time 0.645 hours\n",
      "Validation at Epoch 42 , MSE: 0.20716 , Pearson Correlation: 0.83911 with p-value: 0.0 , Concordance Index: 0.85362\n",
      "Training at Epoch 43 iteration 0 with loss 0.30153. Total time 0.64805 hours\n",
      "Training at Epoch 43 iteration 100 with loss 0.19208. Total time 0.65194 hours\n",
      "Training at Epoch 43 iteration 200 with loss 0.27569. Total time 0.65611 hours\n",
      "Training at Epoch 43 iteration 300 with loss 0.23960. Total time 0.66 hours\n",
      "Validation at Epoch 43 , MSE: 0.20013 , Pearson Correlation: 0.83984 with p-value: 0.0 , Concordance Index: 0.85028\n",
      "Training at Epoch 44 iteration 0 with loss 0.19163. Total time 0.66305 hours\n",
      "Training at Epoch 44 iteration 100 with loss 0.25066. Total time 0.66694 hours\n",
      "Training at Epoch 44 iteration 200 with loss 0.24742. Total time 0.67111 hours\n",
      "Training at Epoch 44 iteration 300 with loss 0.22526. Total time 0.675 hours\n",
      "Validation at Epoch 44 , MSE: 0.20087 , Pearson Correlation: 0.84208 with p-value: 0.0 , Concordance Index: 0.85119\n",
      "Training at Epoch 45 iteration 0 with loss 0.25110. Total time 0.67805 hours\n",
      "Training at Epoch 45 iteration 100 with loss 0.25777. Total time 0.68194 hours\n",
      "Training at Epoch 45 iteration 200 with loss 0.20680. Total time 0.68611 hours\n",
      "Training at Epoch 45 iteration 300 with loss 0.17282. Total time 0.69 hours\n",
      "Validation at Epoch 45 , MSE: 0.19664 , Pearson Correlation: 0.84597 with p-value: 0.0 , Concordance Index: 0.85309\n",
      "Training at Epoch 46 iteration 0 with loss 0.21591. Total time 0.69277 hours\n",
      "Training at Epoch 46 iteration 100 with loss 0.24178. Total time 0.69694 hours\n",
      "Training at Epoch 46 iteration 200 with loss 0.22325. Total time 0.70055 hours\n",
      "Training at Epoch 46 iteration 300 with loss 0.25468. Total time 0.70444 hours\n",
      "Validation at Epoch 46 , MSE: 0.20308 , Pearson Correlation: 0.84009 with p-value: 0.0 , Concordance Index: 0.85473\n",
      "Training at Epoch 47 iteration 0 with loss 0.25433. Total time 0.7075 hours\n",
      "Training at Epoch 47 iteration 100 with loss 0.19160. Total time 0.71138 hours\n",
      "Training at Epoch 47 iteration 200 with loss 0.28539. Total time 0.71527 hours\n",
      "Training at Epoch 47 iteration 300 with loss 0.16875. Total time 0.71888 hours\n",
      "Validation at Epoch 47 , MSE: 0.18735 , Pearson Correlation: 0.85142 with p-value: 0.0 , Concordance Index: 0.85803\n",
      "Training at Epoch 48 iteration 0 with loss 0.20182. Total time 0.72194 hours\n",
      "Training at Epoch 48 iteration 100 with loss 0.23760. Total time 0.72583 hours\n",
      "Training at Epoch 48 iteration 200 with loss 0.24864. Total time 0.72972 hours\n",
      "Training at Epoch 48 iteration 300 with loss 0.18538. Total time 0.73361 hours\n",
      "Validation at Epoch 48 , MSE: 0.19226 , Pearson Correlation: 0.84689 with p-value: 0.0 , Concordance Index: 0.85429\n",
      "Training at Epoch 49 iteration 0 with loss 0.24064. Total time 0.73638 hours\n",
      "Training at Epoch 49 iteration 100 with loss 0.21724. Total time 0.74027 hours\n",
      "Training at Epoch 49 iteration 200 with loss 0.21644. Total time 0.74416 hours\n",
      "Training at Epoch 49 iteration 300 with loss 0.18512. Total time 0.74805 hours\n",
      "Validation at Epoch 49 , MSE: 0.19185 , Pearson Correlation: 0.85244 with p-value: 0.0 , Concordance Index: 0.85839\n",
      "Training at Epoch 50 iteration 0 with loss 0.19929. Total time 0.75083 hours\n",
      "Training at Epoch 50 iteration 100 with loss 0.22992. Total time 0.75472 hours\n",
      "Training at Epoch 50 iteration 200 with loss 0.24827. Total time 0.75861 hours\n",
      "Training at Epoch 50 iteration 300 with loss 0.22432. Total time 0.7625 hours\n",
      "Validation at Epoch 50 , MSE: 0.18285 , Pearson Correlation: 0.85515 with p-value: 0.0 , Concordance Index: 0.86017\n",
      "Training at Epoch 51 iteration 0 with loss 0.16394. Total time 0.76555 hours\n",
      "Training at Epoch 51 iteration 100 with loss 0.18982. Total time 0.76944 hours\n",
      "Training at Epoch 51 iteration 200 with loss 0.21630. Total time 0.77333 hours\n",
      "Training at Epoch 51 iteration 300 with loss 0.22743. Total time 0.77694 hours\n",
      "Validation at Epoch 51 , MSE: 0.18483 , Pearson Correlation: 0.85495 with p-value: 0.0 , Concordance Index: 0.85815\n",
      "Training at Epoch 52 iteration 0 with loss 0.18182. Total time 0.78 hours\n",
      "Training at Epoch 52 iteration 100 with loss 0.20563. Total time 0.78388 hours\n",
      "Training at Epoch 52 iteration 200 with loss 0.23336. Total time 0.78777 hours\n",
      "Training at Epoch 52 iteration 300 with loss 0.24731. Total time 0.79166 hours\n",
      "Validation at Epoch 52 , MSE: 0.19663 , Pearson Correlation: 0.85259 with p-value: 0.0 , Concordance Index: 0.85634\n",
      "Training at Epoch 53 iteration 0 with loss 0.20163. Total time 0.79444 hours\n",
      "Training at Epoch 53 iteration 100 with loss 0.17564. Total time 0.79833 hours\n",
      "Training at Epoch 53 iteration 200 with loss 0.24726. Total time 0.80222 hours\n",
      "Training at Epoch 53 iteration 300 with loss 0.21223. Total time 0.80611 hours\n",
      "Validation at Epoch 53 , MSE: 0.21891 , Pearson Correlation: 0.85165 with p-value: 0.0 , Concordance Index: 0.85838\n",
      "Training at Epoch 54 iteration 0 with loss 0.22887. Total time 0.80888 hours\n",
      "Training at Epoch 54 iteration 100 with loss 0.19899. Total time 0.81305 hours\n",
      "Training at Epoch 54 iteration 200 with loss 0.19816. Total time 0.81694 hours\n",
      "Training at Epoch 54 iteration 300 with loss 0.17314. Total time 0.82055 hours\n",
      "Validation at Epoch 54 , MSE: 0.19615 , Pearson Correlation: 0.85456 with p-value: 0.0 , Concordance Index: 0.86223\n",
      "Training at Epoch 55 iteration 0 with loss 0.17552. Total time 0.82361 hours\n",
      "Training at Epoch 55 iteration 100 with loss 0.18008. Total time 0.8275 hours\n",
      "Training at Epoch 55 iteration 200 with loss 0.20083. Total time 0.83138 hours\n",
      "Training at Epoch 55 iteration 300 with loss 0.22733. Total time 0.83527 hours\n",
      "Validation at Epoch 55 , MSE: 0.19998 , Pearson Correlation: 0.85378 with p-value: 0.0 , Concordance Index: 0.85741\n",
      "Training at Epoch 56 iteration 0 with loss 0.20262. Total time 0.83833 hours\n",
      "Training at Epoch 56 iteration 100 with loss 0.18870. Total time 0.84222 hours\n",
      "Training at Epoch 56 iteration 200 with loss 0.25190. Total time 0.84611 hours\n",
      "Training at Epoch 56 iteration 300 with loss 0.23875. Total time 0.84972 hours\n",
      "Validation at Epoch 56 , MSE: 0.18127 , Pearson Correlation: 0.85700 with p-value: 0.0 , Concordance Index: 0.86002\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 57 iteration 0 with loss 0.17522. Total time 0.85277 hours\n",
      "Training at Epoch 57 iteration 100 with loss 0.17683. Total time 0.85666 hours\n",
      "Training at Epoch 57 iteration 200 with loss 0.16542. Total time 0.86055 hours\n",
      "Training at Epoch 57 iteration 300 with loss 0.22361. Total time 0.86416 hours\n",
      "Validation at Epoch 57 , MSE: 0.18879 , Pearson Correlation: 0.85471 with p-value: 0.0 , Concordance Index: 0.86042\n",
      "Training at Epoch 58 iteration 0 with loss 0.14686. Total time 0.86722 hours\n",
      "Training at Epoch 58 iteration 100 with loss 0.16100. Total time 0.87111 hours\n",
      "Training at Epoch 58 iteration 200 with loss 0.22176. Total time 0.875 hours\n",
      "Training at Epoch 58 iteration 300 with loss 0.20033. Total time 0.87888 hours\n",
      "Validation at Epoch 58 , MSE: 0.26099 , Pearson Correlation: 0.85876 with p-value: 0.0 , Concordance Index: 0.85864\n",
      "Training at Epoch 59 iteration 0 with loss 0.25663. Total time 0.88166 hours\n",
      "Training at Epoch 59 iteration 100 with loss 0.16282. Total time 0.88555 hours\n",
      "Training at Epoch 59 iteration 200 with loss 0.15233. Total time 0.88944 hours\n",
      "Training at Epoch 59 iteration 300 with loss 0.16383. Total time 0.89333 hours\n",
      "Validation at Epoch 59 , MSE: 0.18157 , Pearson Correlation: 0.85819 with p-value: 0.0 , Concordance Index: 0.86506\n",
      "Training at Epoch 60 iteration 0 with loss 0.19984. Total time 0.89611 hours\n",
      "Training at Epoch 60 iteration 100 with loss 0.15996. Total time 0.9 hours\n",
      "Training at Epoch 60 iteration 200 with loss 0.16912. Total time 0.90388 hours\n",
      "Training at Epoch 60 iteration 300 with loss 0.19548. Total time 0.90777 hours\n",
      "Validation at Epoch 60 , MSE: 0.18127 , Pearson Correlation: 0.85785 with p-value: 0.0 , Concordance Index: 0.86372\n",
      "Training at Epoch 61 iteration 0 with loss 0.13082. Total time 0.91055 hours\n",
      "Training at Epoch 61 iteration 100 with loss 0.22044. Total time 0.91444 hours\n",
      "Training at Epoch 61 iteration 200 with loss 0.15454. Total time 0.91833 hours\n",
      "Training at Epoch 61 iteration 300 with loss 0.15197. Total time 0.92222 hours\n",
      "Validation at Epoch 61 , MSE: 0.18963 , Pearson Correlation: 0.86455 with p-value: 0.0 , Concordance Index: 0.86596\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 60 Testing MSE: 0.2663177258366314 , Pearson Correlation: 0.8174502233105511 with p-value: 0.0 , Concordance Index: 0.8103864991020749\n",
      "Training at Epoch 62 iteration 0 with loss 0.15379. Total time 0.92888 hours\n",
      "Training at Epoch 62 iteration 100 with loss 0.18328. Total time 0.93277 hours\n",
      "Training at Epoch 62 iteration 200 with loss 0.14688. Total time 0.93666 hours\n",
      "Training at Epoch 62 iteration 300 with loss 0.19414. Total time 0.94027 hours\n",
      "Validation at Epoch 62 , MSE: 0.17872 , Pearson Correlation: 0.85839 with p-value: 0.0 , Concordance Index: 0.86718\n",
      "Training at Epoch 63 iteration 0 with loss 0.17127. Total time 0.94333 hours\n",
      "Training at Epoch 63 iteration 100 with loss 0.11933. Total time 0.94722 hours\n",
      "Training at Epoch 63 iteration 200 with loss 0.19204. Total time 0.95111 hours\n",
      "Training at Epoch 63 iteration 300 with loss 0.16925. Total time 0.95472 hours\n",
      "Validation at Epoch 63 , MSE: 0.17834 , Pearson Correlation: 0.86154 with p-value: 0.0 , Concordance Index: 0.86822\n",
      "Training at Epoch 64 iteration 0 with loss 0.20797. Total time 0.95777 hours\n",
      "Training at Epoch 64 iteration 100 with loss 0.14272. Total time 0.96166 hours\n",
      "Training at Epoch 64 iteration 200 with loss 0.14731. Total time 0.96555 hours\n",
      "Training at Epoch 64 iteration 300 with loss 0.18046. Total time 0.96916 hours\n",
      "Validation at Epoch 64 , MSE: 0.17616 , Pearson Correlation: 0.86069 with p-value: 0.0 , Concordance Index: 0.86732\n",
      "Training at Epoch 65 iteration 0 with loss 0.21507. Total time 0.97222 hours\n",
      "Training at Epoch 65 iteration 100 with loss 0.13275. Total time 0.97611 hours\n",
      "Training at Epoch 65 iteration 200 with loss 0.14707. Total time 0.98 hours\n",
      "Training at Epoch 65 iteration 300 with loss 0.16473. Total time 0.98388 hours\n",
      "Validation at Epoch 65 , MSE: 0.17178 , Pearson Correlation: 0.86450 with p-value: 0.0 , Concordance Index: 0.86401\n",
      "Training at Epoch 66 iteration 0 with loss 0.14136. Total time 0.98694 hours\n",
      "Training at Epoch 66 iteration 100 with loss 0.13859. Total time 0.99111 hours\n",
      "Training at Epoch 66 iteration 200 with loss 0.16538. Total time 0.99527 hours\n",
      "Training at Epoch 66 iteration 300 with loss 0.18015. Total time 0.99944 hours\n",
      "Validation at Epoch 66 , MSE: 0.19354 , Pearson Correlation: 0.86107 with p-value: 0.0 , Concordance Index: 0.86689\n",
      "Training at Epoch 67 iteration 0 with loss 0.20934. Total time 1.0025 hours\n",
      "Training at Epoch 67 iteration 100 with loss 0.13191. Total time 1.00666 hours\n",
      "Training at Epoch 67 iteration 200 with loss 0.16092. Total time 1.01083 hours\n",
      "Training at Epoch 67 iteration 300 with loss 0.13710. Total time 1.015 hours\n",
      "Validation at Epoch 67 , MSE: 0.17159 , Pearson Correlation: 0.86579 with p-value: 0.0 , Concordance Index: 0.86952\n",
      "Training at Epoch 68 iteration 0 with loss 0.14430. Total time 1.01833 hours\n",
      "Training at Epoch 68 iteration 100 with loss 0.15587. Total time 1.02277 hours\n",
      "Training at Epoch 68 iteration 200 with loss 0.13355. Total time 1.02694 hours\n",
      "Training at Epoch 68 iteration 300 with loss 0.18391. Total time 1.03138 hours\n",
      "Validation at Epoch 68 , MSE: 0.17471 , Pearson Correlation: 0.86257 with p-value: 0.0 , Concordance Index: 0.86827\n",
      "Training at Epoch 69 iteration 0 with loss 0.13519. Total time 1.03472 hours\n",
      "Training at Epoch 69 iteration 100 with loss 0.15895. Total time 1.03916 hours\n",
      "Training at Epoch 69 iteration 200 with loss 0.13380. Total time 1.04361 hours\n",
      "Training at Epoch 69 iteration 300 with loss 0.13166. Total time 1.04777 hours\n",
      "Validation at Epoch 69 , MSE: 0.17205 , Pearson Correlation: 0.86589 with p-value: 0.0 , Concordance Index: 0.86897\n",
      "Training at Epoch 70 iteration 0 with loss 0.13657. Total time 1.05111 hours\n",
      "Training at Epoch 70 iteration 100 with loss 0.16391. Total time 1.05555 hours\n",
      "Training at Epoch 70 iteration 200 with loss 0.13081. Total time 1.06 hours\n",
      "Training at Epoch 70 iteration 300 with loss 0.11893. Total time 1.06416 hours\n",
      "Validation at Epoch 70 , MSE: 0.17906 , Pearson Correlation: 0.86277 with p-value: 0.0 , Concordance Index: 0.86772\n",
      "Training at Epoch 71 iteration 0 with loss 0.14712. Total time 1.0675 hours\n",
      "Training at Epoch 71 iteration 100 with loss 0.17825. Total time 1.07166 hours\n",
      "Training at Epoch 71 iteration 200 with loss 0.15622. Total time 1.07611 hours\n",
      "Training at Epoch 71 iteration 300 with loss 0.14551. Total time 1.08027 hours\n",
      "Validation at Epoch 71 , MSE: 0.16785 , Pearson Correlation: 0.86866 with p-value: 0.0 , Concordance Index: 0.87415\n",
      "Training at Epoch 72 iteration 0 with loss 0.11520. Total time 1.08361 hours\n",
      "Training at Epoch 72 iteration 100 with loss 0.16014. Total time 1.08777 hours\n",
      "Training at Epoch 72 iteration 200 with loss 0.13414. Total time 1.09222 hours\n",
      "Training at Epoch 72 iteration 300 with loss 0.17162. Total time 1.09666 hours\n",
      "Validation at Epoch 72 , MSE: 0.17235 , Pearson Correlation: 0.86449 with p-value: 0.0 , Concordance Index: 0.87089\n",
      "Training at Epoch 73 iteration 0 with loss 0.14934. Total time 1.09972 hours\n",
      "Training at Epoch 73 iteration 100 with loss 0.11918. Total time 1.10444 hours\n",
      "Training at Epoch 73 iteration 200 with loss 0.13623. Total time 1.10861 hours\n",
      "Training at Epoch 73 iteration 300 with loss 0.16880. Total time 1.11305 hours\n",
      "Validation at Epoch 73 , MSE: 0.16985 , Pearson Correlation: 0.86668 with p-value: 0.0 , Concordance Index: 0.87214\n",
      "Training at Epoch 74 iteration 0 with loss 0.14401. Total time 1.11611 hours\n",
      "Training at Epoch 74 iteration 100 with loss 0.12451. Total time 1.12083 hours\n",
      "Training at Epoch 74 iteration 200 with loss 0.17188. Total time 1.12527 hours\n",
      "Training at Epoch 74 iteration 300 with loss 0.15378. Total time 1.12944 hours\n",
      "Validation at Epoch 74 , MSE: 0.17328 , Pearson Correlation: 0.86933 with p-value: 0.0 , Concordance Index: 0.87281\n",
      "Training at Epoch 75 iteration 0 with loss 0.14936. Total time 1.13277 hours\n",
      "Training at Epoch 75 iteration 100 with loss 0.13157. Total time 1.13722 hours\n",
      "Training at Epoch 75 iteration 200 with loss 0.16156. Total time 1.14166 hours\n",
      "Training at Epoch 75 iteration 300 with loss 0.14371. Total time 1.14611 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Validation at Epoch 75 , MSE: 0.16901 , Pearson Correlation: 0.86660 with p-value: 0.0 , Concordance Index: 0.87312\n",
      "Training at Epoch 76 iteration 0 with loss 0.11679. Total time 1.14944 hours\n",
      "Training at Epoch 76 iteration 100 with loss 0.12397. Total time 1.15361 hours\n",
      "Training at Epoch 76 iteration 200 with loss 0.15460. Total time 1.15805 hours\n",
      "Training at Epoch 76 iteration 300 with loss 0.19957. Total time 1.1625 hours\n",
      "Validation at Epoch 76 , MSE: 0.17104 , Pearson Correlation: 0.86629 with p-value: 0.0 , Concordance Index: 0.87375\n",
      "Training at Epoch 77 iteration 0 with loss 0.12853. Total time 1.16555 hours\n",
      "Training at Epoch 77 iteration 100 with loss 0.12321. Total time 1.17 hours\n",
      "Training at Epoch 77 iteration 200 with loss 0.12859. Total time 1.17444 hours\n",
      "Training at Epoch 77 iteration 300 with loss 0.13270. Total time 1.17888 hours\n",
      "Validation at Epoch 77 , MSE: 0.18089 , Pearson Correlation: 0.86558 with p-value: 0.0 , Concordance Index: 0.87345\n",
      "Training at Epoch 78 iteration 0 with loss 0.15736. Total time 1.18194 hours\n",
      "Training at Epoch 78 iteration 100 with loss 0.11613. Total time 1.18638 hours\n",
      "Training at Epoch 78 iteration 200 with loss 0.11404. Total time 1.19083 hours\n",
      "Training at Epoch 78 iteration 300 with loss 0.13913. Total time 1.195 hours\n",
      "Validation at Epoch 78 , MSE: 0.16800 , Pearson Correlation: 0.86879 with p-value: 0.0 , Concordance Index: 0.87498\n",
      "Training at Epoch 79 iteration 0 with loss 0.13822. Total time 1.19833 hours\n",
      "Training at Epoch 79 iteration 100 with loss 0.13989. Total time 1.20277 hours\n",
      "Training at Epoch 79 iteration 200 with loss 0.16214. Total time 1.20694 hours\n",
      "Training at Epoch 79 iteration 300 with loss 0.11616. Total time 1.21138 hours\n",
      "Validation at Epoch 79 , MSE: 0.17403 , Pearson Correlation: 0.86679 with p-value: 0.0 , Concordance Index: 0.87398\n",
      "Training at Epoch 80 iteration 0 with loss 0.13464. Total time 1.21444 hours\n",
      "Training at Epoch 80 iteration 100 with loss 0.19889. Total time 1.21888 hours\n",
      "Training at Epoch 80 iteration 200 with loss 0.09766. Total time 1.22333 hours\n",
      "Training at Epoch 80 iteration 300 with loss 0.15574. Total time 1.2275 hours\n",
      "Validation at Epoch 80 , MSE: 0.16691 , Pearson Correlation: 0.86921 with p-value: 0.0 , Concordance Index: 0.87393\n",
      "Training at Epoch 81 iteration 0 with loss 0.13832. Total time 1.23083 hours\n",
      "Training at Epoch 81 iteration 100 with loss 0.11938. Total time 1.235 hours\n",
      "Training at Epoch 81 iteration 200 with loss 0.11874. Total time 1.23916 hours\n",
      "Training at Epoch 81 iteration 300 with loss 0.15780. Total time 1.24333 hours\n",
      "Validation at Epoch 81 , MSE: 0.17262 , Pearson Correlation: 0.86673 with p-value: 0.0 , Concordance Index: 0.87375\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 80 Testing MSE: 0.24276048376238873 , Pearson Correlation: 0.8240162425873094 with p-value: 0.0 , Concordance Index: 0.8169148882804074\n",
      "Training at Epoch 82 iteration 0 with loss 0.11672. Total time 1.25083 hours\n",
      "Training at Epoch 82 iteration 100 with loss 0.12333. Total time 1.25527 hours\n",
      "Training at Epoch 82 iteration 200 with loss 0.10512. Total time 1.25944 hours\n",
      "Training at Epoch 82 iteration 300 with loss 0.12292. Total time 1.26361 hours\n",
      "Validation at Epoch 82 , MSE: 0.17373 , Pearson Correlation: 0.86820 with p-value: 0.0 , Concordance Index: 0.87476\n",
      "Training at Epoch 83 iteration 0 with loss 0.11991. Total time 1.26694 hours\n",
      "Training at Epoch 83 iteration 100 with loss 0.13676. Total time 1.27138 hours\n",
      "Training at Epoch 83 iteration 200 with loss 0.14860. Total time 1.27555 hours\n",
      "Training at Epoch 83 iteration 300 with loss 0.13756. Total time 1.28 hours\n",
      "Validation at Epoch 83 , MSE: 0.16121 , Pearson Correlation: 0.87304 with p-value: 0.0 , Concordance Index: 0.87723\n",
      "Training at Epoch 84 iteration 0 with loss 0.11389. Total time 1.28305 hours\n",
      "Training at Epoch 84 iteration 100 with loss 0.12178. Total time 1.2875 hours\n",
      "Training at Epoch 84 iteration 200 with loss 0.13727. Total time 1.29194 hours\n",
      "Training at Epoch 84 iteration 300 with loss 0.13954. Total time 1.29611 hours\n",
      "Validation at Epoch 84 , MSE: 0.20369 , Pearson Correlation: 0.86681 with p-value: 0.0 , Concordance Index: 0.87225\n",
      "Training at Epoch 85 iteration 0 with loss 0.16747. Total time 1.29944 hours\n",
      "Training at Epoch 85 iteration 100 with loss 0.12963. Total time 1.30388 hours\n",
      "Training at Epoch 85 iteration 200 with loss 0.15030. Total time 1.30805 hours\n",
      "Training at Epoch 85 iteration 300 with loss 0.14151. Total time 1.3125 hours\n",
      "Validation at Epoch 85 , MSE: 0.17267 , Pearson Correlation: 0.86603 with p-value: 0.0 , Concordance Index: 0.87304\n",
      "Training at Epoch 86 iteration 0 with loss 0.12885. Total time 1.31583 hours\n",
      "Training at Epoch 86 iteration 100 with loss 0.10139. Total time 1.32 hours\n",
      "Training at Epoch 86 iteration 200 with loss 0.11335. Total time 1.32444 hours\n",
      "Training at Epoch 86 iteration 300 with loss 0.11060. Total time 1.32888 hours\n",
      "Validation at Epoch 86 , MSE: 0.17213 , Pearson Correlation: 0.86584 with p-value: 0.0 , Concordance Index: 0.87389\n",
      "Training at Epoch 87 iteration 0 with loss 0.13557. Total time 1.33194 hours\n",
      "Training at Epoch 87 iteration 100 with loss 0.14163. Total time 1.33638 hours\n",
      "Training at Epoch 87 iteration 200 with loss 0.09730. Total time 1.34083 hours\n",
      "Training at Epoch 87 iteration 300 with loss 0.09497. Total time 1.345 hours\n",
      "Validation at Epoch 87 , MSE: 0.16909 , Pearson Correlation: 0.86806 with p-value: 0.0 , Concordance Index: 0.87203\n",
      "Training at Epoch 88 iteration 0 with loss 0.10736. Total time 1.34833 hours\n",
      "Training at Epoch 88 iteration 100 with loss 0.13982. Total time 1.35277 hours\n",
      "Training at Epoch 88 iteration 200 with loss 0.10004. Total time 1.35694 hours\n",
      "Training at Epoch 88 iteration 300 with loss 0.11973. Total time 1.36138 hours\n",
      "Validation at Epoch 88 , MSE: 0.17100 , Pearson Correlation: 0.86707 with p-value: 0.0 , Concordance Index: 0.87634\n",
      "Training at Epoch 89 iteration 0 with loss 0.08160. Total time 1.36444 hours\n",
      "Training at Epoch 89 iteration 100 with loss 0.11177. Total time 1.36888 hours\n",
      "Training at Epoch 89 iteration 200 with loss 0.11847. Total time 1.37333 hours\n",
      "Training at Epoch 89 iteration 300 with loss 0.13952. Total time 1.3775 hours\n",
      "Validation at Epoch 89 , MSE: 0.16482 , Pearson Correlation: 0.87055 with p-value: 0.0 , Concordance Index: 0.87642\n",
      "Training at Epoch 90 iteration 0 with loss 0.11111. Total time 1.38083 hours\n",
      "Training at Epoch 90 iteration 100 with loss 0.11048. Total time 1.385 hours\n",
      "Training at Epoch 90 iteration 200 with loss 0.10376. Total time 1.38944 hours\n",
      "Training at Epoch 90 iteration 300 with loss 0.12908. Total time 1.39361 hours\n",
      "Validation at Epoch 90 , MSE: 0.16596 , Pearson Correlation: 0.86893 with p-value: 0.0 , Concordance Index: 0.87659\n",
      "Training at Epoch 91 iteration 0 with loss 0.11823. Total time 1.39694 hours\n",
      "Training at Epoch 91 iteration 100 with loss 0.11879. Total time 1.40138 hours\n",
      "Training at Epoch 91 iteration 200 with loss 0.10429. Total time 1.40555 hours\n",
      "Training at Epoch 91 iteration 300 with loss 0.10902. Total time 1.40944 hours\n",
      "Validation at Epoch 91 , MSE: 0.17765 , Pearson Correlation: 0.86580 with p-value: 0.0 , Concordance Index: 0.87500\n",
      "Training at Epoch 92 iteration 0 with loss 0.10667. Total time 1.4125 hours\n",
      "Training at Epoch 92 iteration 100 with loss 0.13906. Total time 1.41666 hours\n",
      "Training at Epoch 92 iteration 200 with loss 0.12330. Total time 1.42083 hours\n",
      "Training at Epoch 92 iteration 300 with loss 0.08540. Total time 1.42472 hours\n",
      "Validation at Epoch 92 , MSE: 0.16930 , Pearson Correlation: 0.86846 with p-value: 0.0 , Concordance Index: 0.87686\n",
      "Training at Epoch 93 iteration 0 with loss 0.10867. Total time 1.42805 hours\n",
      "Training at Epoch 93 iteration 100 with loss 0.15722. Total time 1.43222 hours\n",
      "Training at Epoch 93 iteration 200 with loss 0.11646. Total time 1.43638 hours\n",
      "Training at Epoch 93 iteration 300 with loss 0.11255. Total time 1.44055 hours\n",
      "Validation at Epoch 93 , MSE: 0.16770 , Pearson Correlation: 0.86757 with p-value: 0.0 , Concordance Index: 0.87562\n",
      "Training at Epoch 94 iteration 0 with loss 0.13106. Total time 1.44388 hours\n",
      "Training at Epoch 94 iteration 100 with loss 0.11254. Total time 1.44805 hours\n",
      "Training at Epoch 94 iteration 200 with loss 0.09885. Total time 1.4525 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 94 iteration 300 with loss 0.13606. Total time 1.45694 hours\n",
      "Validation at Epoch 94 , MSE: 0.17042 , Pearson Correlation: 0.86547 with p-value: 0.0 , Concordance Index: 0.87348\n",
      "Training at Epoch 95 iteration 0 with loss 0.12143. Total time 1.46 hours\n",
      "Training at Epoch 95 iteration 100 with loss 0.09919. Total time 1.46444 hours\n",
      "Training at Epoch 95 iteration 200 with loss 0.10954. Total time 1.46861 hours\n",
      "Training at Epoch 95 iteration 300 with loss 0.14094. Total time 1.47305 hours\n",
      "Validation at Epoch 95 , MSE: 0.16820 , Pearson Correlation: 0.86997 with p-value: 0.0 , Concordance Index: 0.87773\n",
      "Training at Epoch 96 iteration 0 with loss 0.11398. Total time 1.47611 hours\n",
      "Training at Epoch 96 iteration 100 with loss 0.11203. Total time 1.48055 hours\n",
      "Training at Epoch 96 iteration 200 with loss 0.11484. Total time 1.485 hours\n",
      "Training at Epoch 96 iteration 300 with loss 0.10282. Total time 1.48916 hours\n",
      "Validation at Epoch 96 , MSE: 0.17037 , Pearson Correlation: 0.87053 with p-value: 0.0 , Concordance Index: 0.87593\n",
      "Training at Epoch 97 iteration 0 with loss 0.11125. Total time 1.4925 hours\n",
      "Training at Epoch 97 iteration 100 with loss 0.14139. Total time 1.49694 hours\n",
      "Training at Epoch 97 iteration 200 with loss 0.11372. Total time 1.50111 hours\n",
      "Training at Epoch 97 iteration 300 with loss 0.13090. Total time 1.50527 hours\n",
      "Validation at Epoch 97 , MSE: 0.16765 , Pearson Correlation: 0.86896 with p-value: 0.0 , Concordance Index: 0.87437\n",
      "Training at Epoch 98 iteration 0 with loss 0.07327. Total time 1.50861 hours\n",
      "Training at Epoch 98 iteration 100 with loss 0.09608. Total time 1.51305 hours\n",
      "Training at Epoch 98 iteration 200 with loss 0.12498. Total time 1.51722 hours\n",
      "Training at Epoch 98 iteration 300 with loss 0.11068. Total time 1.52138 hours\n",
      "Validation at Epoch 98 , MSE: 0.18393 , Pearson Correlation: 0.86736 with p-value: 0.0 , Concordance Index: 0.87527\n",
      "Training at Epoch 99 iteration 0 with loss 0.11438. Total time 1.52472 hours\n",
      "Training at Epoch 99 iteration 100 with loss 0.10441. Total time 1.52916 hours\n",
      "Training at Epoch 99 iteration 200 with loss 0.11962. Total time 1.53333 hours\n",
      "Training at Epoch 99 iteration 300 with loss 0.11529. Total time 1.53777 hours\n",
      "Validation at Epoch 99 , MSE: 0.16555 , Pearson Correlation: 0.86970 with p-value: 0.0 , Concordance Index: 0.87827\n",
      "Training at Epoch 100 iteration 0 with loss 0.11048. Total time 1.54083 hours\n",
      "Training at Epoch 100 iteration 100 with loss 0.10355. Total time 1.54527 hours\n",
      "Training at Epoch 100 iteration 200 with loss 0.07988. Total time 1.54972 hours\n",
      "Training at Epoch 100 iteration 300 with loss 0.11468. Total time 1.55388 hours\n",
      "Validation at Epoch 100 , MSE: 0.17653 , Pearson Correlation: 0.86828 with p-value: 0.0 , Concordance Index: 0.87651\n",
      "--- Go for Testing ---\n",
      "Testing MSE: 0.2387106245452896 , Pearson Correlation: 0.826982880029502 with p-value: 0.0 , Concordance Index: 0.8246742730255664\n",
      "--- Training Finished ---\n"
     ]
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYoAAAELCAYAAADHksFtAAAABHNCSVQICAgIfAhkiAAAAAlwSFl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TgOxHxqKbXejbwj8BbqMbhWlfa9wLeRTUfwfFUg/JdFBFPLdu/Apxell/SUMOmVgVHxBHlOb8D/g74+1LTxRHRPPz044D3AO8sn3MT8NmIeHzttyK14aknjZzMvCciflRWr2s8zVOGvP5X4KOZ+YqG9u9TjbtzIvDuhpebDzw9M3/V9B6vbHjuXOCrVON1nQi8PjM3R8S1ZZfLM3P9Dso+nWqQuCOzzHcQEd8rNb2BKqwm7Q4clpnXlP0uowqLlwJv28H7SNvxiEKa6mDgj4DxiNhp8oeqb+NnVFOmNrq0OSQAyqmfb0XEbcD9VIMN/inwhOZ9dyQiHknV6f7p3DYpDlnNiHYJ8Kymp1wzGRJlv1uojmgWI82ARxTSVJMzwX2jzfZfN61vd6qoXHJ7HvA1qiOITcBWqquYdplBTfOpRn1tdVrqV8CSprZWU7reM8P3lgwKqclt5fF4qlNFzX7btN5q+OW/oTqKeHFm3jfZWKb0vGMGNf26vM9jWmx7DNtqlnrCoNCouqc8PqKp/b+owuDxmblmhq89j+oI4g8hEhHPoTr1c33Dfu1qmCIz74qItcBLIuK0zNxaXnMJ8Ezg/86wTqkjBoVG1c1Uf4kfExHrgLuA6zPztoj4X8D7I2IR1Yxud1JdxfQs4NuZ+YkdvPZXgZOBj0XER6n6Jt4M/LJpv5+Wx5MiYg1VP8a6NvdhvJnqqqcvR8R/ALtSXWl1J9vmlJZ6ws5sjaSs5mN+JdX5/29QTff5wrLtg8BfU3U8f5wqLN5C9YfV5R289teA1wGHAF+mmjnuWKrZzRr3uwI4rbzvxaWGP2nzml+lukdjN+Acqmk2rwIOzTKvutQrznAnSarlEYUkqZZBIUmqZVBIkmoZFJKkWgaFJKmWQSFJqmVQSJJqGRSSpFr/H7M2AyUHvuu+AAAAAElFTkSuQmCC\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "drug_encoding = 'Morgan'\n",
    "target_encoding = 'AAC'\n",
    "train, val, test = data_process(X_drug, X_target, y, \n",
    "                                drug_encoding, target_encoding, \n",
    "                                split_method='random',frac=[0.7,0.1,0.2], random_seed = 4)\n",
    "\n",
    "config = generate_config(drug_encoding = drug_encoding, \n",
    "                         target_encoding = target_encoding, \n",
    "                         cls_hidden_dims = [1024,1024,512], \n",
    "                         train_epoch = 100, \n",
    "                         LR = 0.001, \n",
    "                         batch_size = 256\n",
    "                        )\n",
    "model = models.model_initialize(**config)\n",
    "model.train(train, val, test)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "in total: 118254 drug-target pairs\n",
      "encoding drug...\n",
      "unique drugs: 2068\n",
      "drug encoding finished...\n",
      "encoding protein...\n",
      "unique target sequence: 229\n",
      "-- Encoding AAC takes time. Time Reference: 24s for ~100 sequences in a CPU. Calculate your time by the unique target sequence #, instead of the entire dataset.\n",
      "protein encoding finished...\n",
      "splitting dataset...\n",
      "Done.\n",
      "Let's use 1 GPU!\n",
      "--- Data Preparation ---\n",
      "--- Go for Training ---\n",
      "Training at Epoch 1 iteration 0 with loss 137.415. Total time 0.0 hours\n",
      "Training at Epoch 1 iteration 100 with loss 0.65468. Total time 0.00472 hours\n",
      "Training at Epoch 1 iteration 200 with loss 0.63160. Total time 0.00916 hours\n",
      "Training at Epoch 1 iteration 300 with loss 0.63834. Total time 0.01388 hours\n",
      "Validation at Epoch 1 , MSE: 0.43802 , Pearson Correlation: 0.61987 with p-value: 0.0 , Concordance Index: 0.74223\n",
      "Training at Epoch 2 iteration 0 with loss 0.69277. Total time 0.01694 hours\n",
      "Training at Epoch 2 iteration 100 with loss 0.42929. Total time 0.02166 hours\n",
      "Training at Epoch 2 iteration 200 with loss 0.72626. Total time 0.02611 hours\n",
      "Training at Epoch 2 iteration 300 with loss 0.73935. Total time 0.03027 hours\n",
      "Validation at Epoch 2 , MSE: 0.45560 , Pearson Correlation: 0.64282 with p-value: 0.0 , Concordance Index: 0.75694\n",
      "Training at Epoch 3 iteration 0 with loss 0.63806. Total time 0.03361 hours\n",
      "Training at Epoch 3 iteration 100 with loss 0.43646. Total time 0.03805 hours\n",
      "Training at Epoch 3 iteration 200 with loss 0.54122. Total time 0.0425 hours\n",
      "Training at Epoch 3 iteration 300 with loss 0.44348. Total time 0.04694 hours\n",
      "Validation at Epoch 3 , MSE: 0.44069 , Pearson Correlation: 0.64918 with p-value: 0.0 , Concordance Index: 0.75800\n",
      "Training at Epoch 4 iteration 0 with loss 0.61669. Total time 0.05027 hours\n",
      "Training at Epoch 4 iteration 100 with loss 0.56401. Total time 0.05472 hours\n",
      "Training at Epoch 4 iteration 200 with loss 0.58448. Total time 0.05916 hours\n",
      "Training at Epoch 4 iteration 300 with loss 0.51442. Total time 0.06361 hours\n",
      "Validation at Epoch 4 , MSE: 0.42380 , Pearson Correlation: 0.65945 with p-value: 0.0 , Concordance Index: 0.76440\n",
      "Training at Epoch 5 iteration 0 with loss 0.52039. Total time 0.06694 hours\n",
      "Training at Epoch 5 iteration 100 with loss 0.57552. Total time 0.07138 hours\n",
      "Training at Epoch 5 iteration 200 with loss 0.56449. Total time 0.07583 hours\n",
      "Training at Epoch 5 iteration 300 with loss 0.56219. Total time 0.08027 hours\n",
      "Validation at Epoch 5 , MSE: 0.38472 , Pearson Correlation: 0.67206 with p-value: 0.0 , Concordance Index: 0.77080\n",
      "Training at Epoch 6 iteration 0 with loss 0.45658. Total time 0.08361 hours\n",
      "Training at Epoch 6 iteration 100 with loss 0.54064. Total time 0.08805 hours\n",
      "Training at Epoch 6 iteration 200 with loss 0.50004. Total time 0.0925 hours\n",
      "Training at Epoch 6 iteration 300 with loss 0.57411. Total time 0.09694 hours\n",
      "Validation at Epoch 6 , MSE: 0.48775 , Pearson Correlation: 0.67710 with p-value: 0.0 , Concordance Index: 0.77813\n",
      "Training at Epoch 7 iteration 0 with loss 0.57865. Total time 0.10027 hours\n",
      "Training at Epoch 7 iteration 100 with loss 0.37671. Total time 0.10472 hours\n",
      "Training at Epoch 7 iteration 200 with loss 0.45578. Total time 0.10916 hours\n",
      "Training at Epoch 7 iteration 300 with loss 0.37886. Total time 0.11361 hours\n",
      "Validation at Epoch 7 , MSE: 0.37171 , Pearson Correlation: 0.68529 with p-value: 0.0 , Concordance Index: 0.77538\n",
      "Training at Epoch 8 iteration 0 with loss 0.47165. Total time 0.11666 hours\n",
      "Training at Epoch 8 iteration 100 with loss 0.62995. Total time 0.12111 hours\n",
      "Training at Epoch 8 iteration 200 with loss 0.66325. Total time 0.12555 hours\n",
      "Training at Epoch 8 iteration 300 with loss 0.43161. Total time 0.13 hours\n",
      "Validation at Epoch 8 , MSE: 0.34042 , Pearson Correlation: 0.72465 with p-value: 0.0 , Concordance Index: 0.78887\n",
      "Training at Epoch 9 iteration 0 with loss 0.42231. Total time 0.13333 hours\n",
      "Training at Epoch 9 iteration 100 with loss 0.46130. Total time 0.13777 hours\n",
      "Training at Epoch 9 iteration 200 with loss 0.38430. Total time 0.14222 hours\n",
      "Training at Epoch 9 iteration 300 with loss 0.44911. Total time 0.14666 hours\n",
      "Validation at Epoch 9 , MSE: 0.32272 , Pearson Correlation: 0.73590 with p-value: 0.0 , Concordance Index: 0.79226\n",
      "Training at Epoch 10 iteration 0 with loss 0.35232. Total time 0.14972 hours\n",
      "Training at Epoch 10 iteration 100 with loss 0.33894. Total time 0.15416 hours\n",
      "Training at Epoch 10 iteration 200 with loss 0.44923. Total time 0.15861 hours\n",
      "Training at Epoch 10 iteration 300 with loss 0.49009. Total time 0.16305 hours\n",
      "Validation at Epoch 10 , MSE: 0.31610 , Pearson Correlation: 0.74665 with p-value: 0.0 , Concordance Index: 0.79503\n",
      "Training at Epoch 11 iteration 0 with loss 0.38844. Total time 0.16638 hours\n",
      "Training at Epoch 11 iteration 100 with loss 0.43731. Total time 0.17083 hours\n",
      "Training at Epoch 11 iteration 200 with loss 0.40642. Total time 0.175 hours\n",
      "Training at Epoch 11 iteration 300 with loss 0.71575. Total time 0.17944 hours\n",
      "Validation at Epoch 11 , MSE: 0.34645 , Pearson Correlation: 0.75103 with p-value: 0.0 , Concordance Index: 0.79365\n",
      "Training at Epoch 12 iteration 0 with loss 0.48447. Total time 0.18277 hours\n",
      "Training at Epoch 12 iteration 100 with loss 0.37109. Total time 0.18722 hours\n",
      "Training at Epoch 12 iteration 200 with loss 0.48328. Total time 0.19166 hours\n",
      "Training at Epoch 12 iteration 300 with loss 0.40080. Total time 0.19583 hours\n",
      "Validation at Epoch 12 , MSE: 0.54984 , Pearson Correlation: 0.75770 with p-value: 0.0 , Concordance Index: 0.80151\n",
      "Training at Epoch 13 iteration 0 with loss 0.66565. Total time 0.19916 hours\n",
      "Training at Epoch 13 iteration 100 with loss 0.46565. Total time 0.20361 hours\n",
      "Training at Epoch 13 iteration 200 with loss 0.44518. Total time 0.20777 hours\n",
      "Training at Epoch 13 iteration 300 with loss 0.40312. Total time 0.21222 hours\n",
      "Validation at Epoch 13 , MSE: 0.29755 , Pearson Correlation: 0.76148 with p-value: 0.0 , Concordance Index: 0.79905\n",
      "Training at Epoch 14 iteration 0 with loss 0.31932. Total time 0.21555 hours\n",
      "Training at Epoch 14 iteration 100 with loss 0.42236. Total time 0.22 hours\n",
      "Training at Epoch 14 iteration 200 with loss 0.48105. Total time 0.22416 hours\n",
      "Training at Epoch 14 iteration 300 with loss 0.37495. Total time 0.22833 hours\n",
      "Validation at Epoch 14 , MSE: 0.32647 , Pearson Correlation: 0.76283 with p-value: 0.0 , Concordance Index: 0.80955\n",
      "Training at Epoch 15 iteration 0 with loss 0.35254. Total time 0.23138 hours\n",
      "Training at Epoch 15 iteration 100 with loss 0.36186. Total time 0.23583 hours\n",
      "Training at Epoch 15 iteration 200 with loss 0.44110. Total time 0.24 hours\n",
      "Training at Epoch 15 iteration 300 with loss 0.43048. Total time 0.24416 hours\n",
      "Validation at Epoch 15 , MSE: 0.36410 , Pearson Correlation: 0.76867 with p-value: 0.0 , Concordance Index: 0.80901\n",
      "Training at Epoch 16 iteration 0 with loss 0.45240. Total time 0.24722 hours\n",
      "Training at Epoch 16 iteration 100 with loss 0.44794. Total time 0.25138 hours\n",
      "Training at Epoch 16 iteration 200 with loss 0.50134. Total time 0.25555 hours\n",
      "Training at Epoch 16 iteration 300 with loss 0.40029. Total time 0.25972 hours\n",
      "Validation at Epoch 16 , MSE: 0.29686 , Pearson Correlation: 0.77378 with p-value: 0.0 , Concordance Index: 0.81054\n",
      "Training at Epoch 17 iteration 0 with loss 0.41583. Total time 0.26277 hours\n",
      "Training at Epoch 17 iteration 100 with loss 0.31038. Total time 0.26694 hours\n",
      "Training at Epoch 17 iteration 200 with loss 0.43954. Total time 0.27138 hours\n",
      "Training at Epoch 17 iteration 300 with loss 0.30609. Total time 0.27555 hours\n",
      "Validation at Epoch 17 , MSE: 0.32332 , Pearson Correlation: 0.77127 with p-value: 0.0 , Concordance Index: 0.80930\n",
      "Training at Epoch 18 iteration 0 with loss 0.42505. Total time 0.27861 hours\n",
      "Training at Epoch 18 iteration 100 with loss 0.39225. Total time 0.28277 hours\n",
      "Training at Epoch 18 iteration 200 with loss 0.36984. Total time 0.28694 hours\n",
      "Training at Epoch 18 iteration 300 with loss 0.38008. Total time 0.29111 hours\n",
      "Validation at Epoch 18 , MSE: 0.28911 , Pearson Correlation: 0.76819 with p-value: 0.0 , Concordance Index: 0.80579\n",
      "Training at Epoch 19 iteration 0 with loss 0.32531. Total time 0.29416 hours\n",
      "Training at Epoch 19 iteration 100 with loss 0.55668. Total time 0.29833 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 19 iteration 200 with loss 0.46434. Total time 0.3025 hours\n",
      "Training at Epoch 19 iteration 300 with loss 0.42916. Total time 0.30666 hours\n",
      "Validation at Epoch 19 , MSE: 0.39504 , Pearson Correlation: 0.77884 with p-value: 0.0 , Concordance Index: 0.81028\n",
      "Training at Epoch 20 iteration 0 with loss 0.54081. Total time 0.30944 hours\n",
      "Training at Epoch 20 iteration 100 with loss 0.33964. Total time 0.31361 hours\n",
      "Training at Epoch 20 iteration 200 with loss 0.37649. Total time 0.31777 hours\n",
      "Training at Epoch 20 iteration 300 with loss 0.45921. Total time 0.32166 hours\n",
      "Validation at Epoch 20 , MSE: 0.29663 , Pearson Correlation: 0.78146 with p-value: 0.0 , Concordance Index: 0.80925\n",
      "Training at Epoch 21 iteration 0 with loss 0.36204. Total time 0.32472 hours\n",
      "Training at Epoch 21 iteration 100 with loss 0.33848. Total time 0.32888 hours\n",
      "Training at Epoch 21 iteration 200 with loss 0.36309. Total time 0.33305 hours\n",
      "Training at Epoch 21 iteration 300 with loss 0.38480. Total time 0.33694 hours\n",
      "Validation at Epoch 21 , MSE: 0.33223 , Pearson Correlation: 0.78709 with p-value: 0.0 , Concordance Index: 0.81453\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 20 Testing MSE: 0.43350261001685136 , Pearson Correlation: 0.7128821234126763 with p-value: 0.0 , Concordance Index: 0.7524313073122366\n",
      "Training at Epoch 22 iteration 0 with loss 0.41369. Total time 0.34416 hours\n",
      "Training at Epoch 22 iteration 100 with loss 0.43719. Total time 0.34805 hours\n",
      "Training at Epoch 22 iteration 200 with loss 0.45231. Total time 0.35222 hours\n",
      "Training at Epoch 22 iteration 300 with loss 0.31385. Total time 0.35611 hours\n",
      "Validation at Epoch 22 , MSE: 0.27668 , Pearson Correlation: 0.78347 with p-value: 0.0 , Concordance Index: 0.81567\n",
      "Training at Epoch 23 iteration 0 with loss 0.42465. Total time 0.35916 hours\n",
      "Training at Epoch 23 iteration 100 with loss 0.40090. Total time 0.36333 hours\n",
      "Training at Epoch 23 iteration 200 with loss 0.36756. Total time 0.3675 hours\n",
      "Training at Epoch 23 iteration 300 with loss 0.48661. Total time 0.37138 hours\n",
      "Validation at Epoch 23 , MSE: 0.41333 , Pearson Correlation: 0.78699 with p-value: 0.0 , Concordance Index: 0.81501\n",
      "Training at Epoch 24 iteration 0 with loss 0.47946. Total time 0.37444 hours\n",
      "Training at Epoch 24 iteration 100 with loss 0.39386. Total time 0.37861 hours\n",
      "Training at Epoch 24 iteration 200 with loss 0.29070. Total time 0.38277 hours\n",
      "Training at Epoch 24 iteration 300 with loss 0.32884. Total time 0.38666 hours\n",
      "Validation at Epoch 24 , MSE: 0.26933 , Pearson Correlation: 0.78972 with p-value: 0.0 , Concordance Index: 0.81628\n",
      "Training at Epoch 25 iteration 0 with loss 0.35540. Total time 0.38972 hours\n",
      "Training at Epoch 25 iteration 100 with loss 0.24696. Total time 0.39388 hours\n",
      "Training at Epoch 25 iteration 200 with loss 0.34624. Total time 0.39805 hours\n",
      "Training at Epoch 25 iteration 300 with loss 0.33578. Total time 0.40222 hours\n",
      "Validation at Epoch 25 , MSE: 0.26355 , Pearson Correlation: 0.79210 with p-value: 0.0 , Concordance Index: 0.81953\n",
      "Training at Epoch 26 iteration 0 with loss 0.32893. Total time 0.40527 hours\n",
      "Training at Epoch 26 iteration 100 with loss 0.36818. Total time 0.40916 hours\n",
      "Training at Epoch 26 iteration 200 with loss 0.28337. Total time 0.41333 hours\n",
      "Training at Epoch 26 iteration 300 with loss 0.38246. Total time 0.4175 hours\n",
      "Validation at Epoch 26 , MSE: 0.28187 , Pearson Correlation: 0.78993 with p-value: 0.0 , Concordance Index: 0.81868\n",
      "Training at Epoch 27 iteration 0 with loss 0.36998. Total time 0.42055 hours\n",
      "Training at Epoch 27 iteration 100 with loss 0.38144. Total time 0.42472 hours\n",
      "Training at Epoch 27 iteration 200 with loss 0.31419. Total time 0.42861 hours\n",
      "Training at Epoch 27 iteration 300 with loss 0.26309. Total time 0.43277 hours\n",
      "Validation at Epoch 27 , MSE: 0.25927 , Pearson Correlation: 0.79402 with p-value: 0.0 , Concordance Index: 0.82018\n",
      "Training at Epoch 28 iteration 0 with loss 0.30722. Total time 0.43583 hours\n",
      "Training at Epoch 28 iteration 100 with loss 0.41646. Total time 0.44 hours\n",
      "Training at Epoch 28 iteration 200 with loss 0.28497. Total time 0.44388 hours\n",
      "Training at Epoch 28 iteration 300 with loss 0.30087. Total time 0.44805 hours\n",
      "Validation at Epoch 28 , MSE: 0.27679 , Pearson Correlation: 0.79696 with p-value: 0.0 , Concordance Index: 0.82058\n",
      "Training at Epoch 29 iteration 0 with loss 0.27955. Total time 0.45111 hours\n",
      "Training at Epoch 29 iteration 100 with loss 0.27691. Total time 0.45527 hours\n",
      "Training at Epoch 29 iteration 200 with loss 0.24623. Total time 0.45944 hours\n",
      "Training at Epoch 29 iteration 300 with loss 0.27389. Total time 0.46333 hours\n",
      "Validation at Epoch 29 , MSE: 0.25102 , Pearson Correlation: 0.80423 with p-value: 0.0 , Concordance Index: 0.82578\n",
      "Training at Epoch 30 iteration 0 with loss 0.30013. Total time 0.46666 hours\n",
      "Training at Epoch 30 iteration 100 with loss 0.30815. Total time 0.47055 hours\n",
      "Training at Epoch 30 iteration 200 with loss 0.32287. Total time 0.47472 hours\n",
      "Training at Epoch 30 iteration 300 with loss 0.37221. Total time 0.47888 hours\n",
      "Validation at Epoch 30 , MSE: 0.25294 , Pearson Correlation: 0.80138 with p-value: 0.0 , Concordance Index: 0.82551\n",
      "Training at Epoch 31 iteration 0 with loss 0.28600. Total time 0.48222 hours\n",
      "Training at Epoch 31 iteration 100 with loss 0.27624. Total time 0.48611 hours\n",
      "Training at Epoch 31 iteration 200 with loss 0.24246. Total time 0.49027 hours\n",
      "Training at Epoch 31 iteration 300 with loss 0.40110. Total time 0.49472 hours\n",
      "Validation at Epoch 31 , MSE: 0.24900 , Pearson Correlation: 0.80419 with p-value: 0.0 , Concordance Index: 0.82380\n",
      "Training at Epoch 32 iteration 0 with loss 0.25269. Total time 0.49777 hours\n",
      "Training at Epoch 32 iteration 100 with loss 0.37729. Total time 0.50194 hours\n",
      "Training at Epoch 32 iteration 200 with loss 0.28989. Total time 0.50611 hours\n",
      "Training at Epoch 32 iteration 300 with loss 0.22449. Total time 0.51027 hours\n",
      "Validation at Epoch 32 , MSE: 0.25239 , Pearson Correlation: 0.80815 with p-value: 0.0 , Concordance Index: 0.83021\n",
      "Training at Epoch 33 iteration 0 with loss 0.29697. Total time 0.51333 hours\n",
      "Training at Epoch 33 iteration 100 with loss 0.26837. Total time 0.5175 hours\n",
      "Training at Epoch 33 iteration 200 with loss 0.31348. Total time 0.52166 hours\n",
      "Training at Epoch 33 iteration 300 with loss 0.31060. Total time 0.52583 hours\n",
      "Validation at Epoch 33 , MSE: 0.25752 , Pearson Correlation: 0.81045 with p-value: 0.0 , Concordance Index: 0.83275\n",
      "Training at Epoch 34 iteration 0 with loss 0.21266. Total time 0.52888 hours\n",
      "Training at Epoch 34 iteration 100 with loss 0.26623. Total time 0.53305 hours\n",
      "Training at Epoch 34 iteration 200 with loss 0.25067. Total time 0.53694 hours\n",
      "Training at Epoch 34 iteration 300 with loss 0.24668. Total time 0.54111 hours\n",
      "Validation at Epoch 34 , MSE: 0.24248 , Pearson Correlation: 0.81307 with p-value: 0.0 , Concordance Index: 0.83413\n",
      "Training at Epoch 35 iteration 0 with loss 0.26334. Total time 0.54416 hours\n",
      "Training at Epoch 35 iteration 100 with loss 0.24834. Total time 0.54833 hours\n",
      "Training at Epoch 35 iteration 200 with loss 0.27999. Total time 0.55222 hours\n",
      "Training at Epoch 35 iteration 300 with loss 0.22995. Total time 0.55666 hours\n",
      "Validation at Epoch 35 , MSE: 0.25187 , Pearson Correlation: 0.81924 with p-value: 0.0 , Concordance Index: 0.83667\n",
      "Training at Epoch 36 iteration 0 with loss 0.24374. Total time 0.55972 hours\n",
      "Training at Epoch 36 iteration 100 with loss 0.31138. Total time 0.56388 hours\n",
      "Training at Epoch 36 iteration 200 with loss 0.25158. Total time 0.56805 hours\n",
      "Training at Epoch 36 iteration 300 with loss 0.31045. Total time 0.57194 hours\n",
      "Validation at Epoch 36 , MSE: 0.23983 , Pearson Correlation: 0.81441 with p-value: 0.0 , Concordance Index: 0.83101\n",
      "Training at Epoch 37 iteration 0 with loss 0.23746. Total time 0.57527 hours\n",
      "Training at Epoch 37 iteration 100 with loss 0.27295. Total time 0.57944 hours\n",
      "Training at Epoch 37 iteration 200 with loss 0.20699. Total time 0.58361 hours\n",
      "Training at Epoch 37 iteration 300 with loss 0.27771. Total time 0.5875 hours\n",
      "Validation at Epoch 37 , MSE: 0.22613 , Pearson Correlation: 0.82541 with p-value: 0.0 , Concordance Index: 0.83861\n",
      "Training at Epoch 38 iteration 0 with loss 0.26295. Total time 0.59055 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 38 iteration 100 with loss 0.27166. Total time 0.59472 hours\n",
      "Training at Epoch 38 iteration 200 with loss 0.24160. Total time 0.59888 hours\n",
      "Training at Epoch 38 iteration 300 with loss 0.23897. Total time 0.60305 hours\n",
      "Validation at Epoch 38 , MSE: 0.23906 , Pearson Correlation: 0.82266 with p-value: 0.0 , Concordance Index: 0.83541\n",
      "Training at Epoch 39 iteration 0 with loss 0.27530. Total time 0.60611 hours\n",
      "Training at Epoch 39 iteration 100 with loss 0.27764. Total time 0.61055 hours\n",
      "Training at Epoch 39 iteration 200 with loss 0.21530. Total time 0.61472 hours\n",
      "Training at Epoch 39 iteration 300 with loss 0.24739. Total time 0.61888 hours\n",
      "Validation at Epoch 39 , MSE: 0.24147 , Pearson Correlation: 0.81957 with p-value: 0.0 , Concordance Index: 0.83628\n",
      "Training at Epoch 40 iteration 0 with loss 0.27619. Total time 0.62194 hours\n",
      "Training at Epoch 40 iteration 100 with loss 0.30782. Total time 0.62638 hours\n",
      "Training at Epoch 40 iteration 200 with loss 0.23040. Total time 0.63055 hours\n",
      "Training at Epoch 40 iteration 300 with loss 0.20856. Total time 0.63472 hours\n",
      "Validation at Epoch 40 , MSE: 0.27289 , Pearson Correlation: 0.82595 with p-value: 0.0 , Concordance Index: 0.84056\n",
      "Training at Epoch 41 iteration 0 with loss 0.28589. Total time 0.63777 hours\n",
      "Training at Epoch 41 iteration 100 with loss 0.23715. Total time 0.64194 hours\n",
      "Training at Epoch 41 iteration 200 with loss 0.25886. Total time 0.64638 hours\n",
      "Training at Epoch 41 iteration 300 with loss 0.23237. Total time 0.65055 hours\n",
      "Validation at Epoch 41 , MSE: 0.22461 , Pearson Correlation: 0.82529 with p-value: 0.0 , Concordance Index: 0.84413\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 40 Testing MSE: 0.3005558302062169 , Pearson Correlation: 0.7668045290378201 with p-value: 0.0 , Concordance Index: 0.7838157357356311\n",
      "Training at Epoch 42 iteration 0 with loss 0.25531. Total time 0.65777 hours\n",
      "Training at Epoch 42 iteration 100 with loss 0.25979. Total time 0.66194 hours\n",
      "Training at Epoch 42 iteration 200 with loss 0.22388. Total time 0.66611 hours\n",
      "Training at Epoch 42 iteration 300 with loss 0.26320. Total time 0.67027 hours\n",
      "Validation at Epoch 42 , MSE: 0.21740 , Pearson Correlation: 0.83173 with p-value: 0.0 , Concordance Index: 0.84381\n",
      "Training at Epoch 43 iteration 0 with loss 0.21130. Total time 0.67361 hours\n",
      "Training at Epoch 43 iteration 100 with loss 0.26808. Total time 0.67777 hours\n",
      "Training at Epoch 43 iteration 200 with loss 0.20925. Total time 0.68194 hours\n",
      "Training at Epoch 43 iteration 300 with loss 0.20862. Total time 0.68638 hours\n",
      "Validation at Epoch 43 , MSE: 0.22570 , Pearson Correlation: 0.82967 with p-value: 0.0 , Concordance Index: 0.84493\n",
      "Training at Epoch 44 iteration 0 with loss 0.24842. Total time 0.68944 hours\n",
      "Training at Epoch 44 iteration 100 with loss 0.26223. Total time 0.69361 hours\n",
      "Training at Epoch 44 iteration 200 with loss 0.23685. Total time 0.69805 hours\n",
      "Training at Epoch 44 iteration 300 with loss 0.22528. Total time 0.70222 hours\n",
      "Validation at Epoch 44 , MSE: 0.26777 , Pearson Correlation: 0.83723 with p-value: 0.0 , Concordance Index: 0.84821\n",
      "Training at Epoch 45 iteration 0 with loss 0.29106. Total time 0.70527 hours\n",
      "Training at Epoch 45 iteration 100 with loss 0.28062. Total time 0.70972 hours\n",
      "Training at Epoch 45 iteration 200 with loss 0.21747. Total time 0.71388 hours\n",
      "Training at Epoch 45 iteration 300 with loss 0.21606. Total time 0.71805 hours\n",
      "Validation at Epoch 45 , MSE: 0.21157 , Pearson Correlation: 0.83938 with p-value: 0.0 , Concordance Index: 0.84853\n",
      "Training at Epoch 46 iteration 0 with loss 0.20748. Total time 0.72138 hours\n",
      "Training at Epoch 46 iteration 100 with loss 0.28033. Total time 0.72583 hours\n",
      "Training at Epoch 46 iteration 200 with loss 0.18821. Total time 0.73 hours\n",
      "Training at Epoch 46 iteration 300 with loss 0.19873. Total time 0.73416 hours\n",
      "Validation at Epoch 46 , MSE: 0.20074 , Pearson Correlation: 0.84586 with p-value: 0.0 , Concordance Index: 0.85063\n",
      "Training at Epoch 47 iteration 0 with loss 0.23769. Total time 0.7375 hours\n",
      "Training at Epoch 47 iteration 100 with loss 0.22986. Total time 0.74166 hours\n",
      "Training at Epoch 47 iteration 200 with loss 0.24762. Total time 0.74583 hours\n",
      "Training at Epoch 47 iteration 300 with loss 0.24953. Total time 0.75027 hours\n",
      "Validation at Epoch 47 , MSE: 0.20836 , Pearson Correlation: 0.84044 with p-value: 0.0 , Concordance Index: 0.85159\n",
      "Training at Epoch 48 iteration 0 with loss 0.22067. Total time 0.75333 hours\n",
      "Training at Epoch 48 iteration 100 with loss 0.21027. Total time 0.7575 hours\n",
      "Training at Epoch 48 iteration 200 with loss 0.20003. Total time 0.76194 hours\n",
      "Training at Epoch 48 iteration 300 with loss 0.29419. Total time 0.76611 hours\n",
      "Validation at Epoch 48 , MSE: 0.22947 , Pearson Correlation: 0.84076 with p-value: 0.0 , Concordance Index: 0.84914\n",
      "Training at Epoch 49 iteration 0 with loss 0.20871. Total time 0.76916 hours\n",
      "Training at Epoch 49 iteration 100 with loss 0.18350. Total time 0.77333 hours\n",
      "Training at Epoch 49 iteration 200 with loss 0.20803. Total time 0.77777 hours\n",
      "Training at Epoch 49 iteration 300 with loss 0.26333. Total time 0.78194 hours\n",
      "Validation at Epoch 49 , MSE: 0.20888 , Pearson Correlation: 0.84695 with p-value: 0.0 , Concordance Index: 0.85181\n",
      "Training at Epoch 50 iteration 0 with loss 0.20803. Total time 0.785 hours\n",
      "Training at Epoch 50 iteration 100 with loss 0.16275. Total time 0.78916 hours\n",
      "Training at Epoch 50 iteration 200 with loss 0.21139. Total time 0.79361 hours\n",
      "Training at Epoch 50 iteration 300 with loss 0.22231. Total time 0.79777 hours\n",
      "Validation at Epoch 50 , MSE: 0.20518 , Pearson Correlation: 0.84491 with p-value: 0.0 , Concordance Index: 0.85205\n",
      "Training at Epoch 51 iteration 0 with loss 0.19114. Total time 0.80083 hours\n",
      "Training at Epoch 51 iteration 100 with loss 0.24998. Total time 0.80527 hours\n",
      "Training at Epoch 51 iteration 200 with loss 0.18732. Total time 0.80944 hours\n",
      "Training at Epoch 51 iteration 300 with loss 0.22188. Total time 0.81361 hours\n",
      "Validation at Epoch 51 , MSE: 0.21690 , Pearson Correlation: 0.84906 with p-value: 0.0 , Concordance Index: 0.85703\n",
      "Training at Epoch 52 iteration 0 with loss 0.20144. Total time 0.81694 hours\n",
      "Training at Epoch 52 iteration 100 with loss 0.21367. Total time 0.82111 hours\n",
      "Training at Epoch 52 iteration 200 with loss 0.21219. Total time 0.82555 hours\n",
      "Training at Epoch 52 iteration 300 with loss 0.19854. Total time 0.82972 hours\n",
      "Validation at Epoch 52 , MSE: 0.19933 , Pearson Correlation: 0.84724 with p-value: 0.0 , Concordance Index: 0.85426\n",
      "Training at Epoch 53 iteration 0 with loss 0.16698. Total time 0.83277 hours\n",
      "Training at Epoch 53 iteration 100 with loss 0.20725. Total time 0.83722 hours\n",
      "Training at Epoch 53 iteration 200 with loss 0.18529. Total time 0.84138 hours\n",
      "Training at Epoch 53 iteration 300 with loss 0.20284. Total time 0.84555 hours\n",
      "Validation at Epoch 53 , MSE: 0.20211 , Pearson Correlation: 0.85097 with p-value: 0.0 , Concordance Index: 0.85255\n",
      "Training at Epoch 54 iteration 0 with loss 0.24246. Total time 0.84888 hours\n",
      "Training at Epoch 54 iteration 100 with loss 0.24825. Total time 0.85333 hours\n",
      "Training at Epoch 54 iteration 200 with loss 0.18896. Total time 0.8575 hours\n",
      "Training at Epoch 54 iteration 300 with loss 0.22836. Total time 0.86166 hours\n",
      "Validation at Epoch 54 , MSE: 0.18992 , Pearson Correlation: 0.85440 with p-value: 0.0 , Concordance Index: 0.85691\n",
      "Training at Epoch 55 iteration 0 with loss 0.22324. Total time 0.865 hours\n",
      "Training at Epoch 55 iteration 100 with loss 0.18991. Total time 0.86916 hours\n",
      "Training at Epoch 55 iteration 200 with loss 0.22046. Total time 0.87333 hours\n",
      "Training at Epoch 55 iteration 300 with loss 0.18910. Total time 0.87777 hours\n",
      "Validation at Epoch 55 , MSE: 0.19259 , Pearson Correlation: 0.85216 with p-value: 0.0 , Concordance Index: 0.85605\n",
      "Training at Epoch 56 iteration 0 with loss 0.14786. Total time 0.88083 hours\n",
      "Training at Epoch 56 iteration 100 with loss 0.18888. Total time 0.88527 hours\n",
      "Training at Epoch 56 iteration 200 with loss 0.20505. Total time 0.88944 hours\n",
      "Training at Epoch 56 iteration 300 with loss 0.16841. Total time 0.89361 hours\n",
      "Validation at Epoch 56 , MSE: 0.19624 , Pearson Correlation: 0.85028 with p-value: 0.0 , Concordance Index: 0.85511\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 57 iteration 0 with loss 0.16288. Total time 0.89694 hours\n",
      "Training at Epoch 57 iteration 100 with loss 0.21191. Total time 0.90111 hours\n",
      "Training at Epoch 57 iteration 200 with loss 0.18118. Total time 0.90555 hours\n",
      "Training at Epoch 57 iteration 300 with loss 0.17097. Total time 0.90972 hours\n",
      "Validation at Epoch 57 , MSE: 0.23092 , Pearson Correlation: 0.85279 with p-value: 0.0 , Concordance Index: 0.85806\n",
      "Training at Epoch 58 iteration 0 with loss 0.19651. Total time 0.91277 hours\n",
      "Training at Epoch 58 iteration 100 with loss 0.17782. Total time 0.91722 hours\n",
      "Training at Epoch 58 iteration 200 with loss 0.20115. Total time 0.92138 hours\n",
      "Training at Epoch 58 iteration 300 with loss 0.18624. Total time 0.92555 hours\n",
      "Validation at Epoch 58 , MSE: 0.19678 , Pearson Correlation: 0.84979 with p-value: 0.0 , Concordance Index: 0.85699\n",
      "Training at Epoch 59 iteration 0 with loss 0.15168. Total time 0.92888 hours\n",
      "Training at Epoch 59 iteration 100 with loss 0.18627. Total time 0.93305 hours\n",
      "Training at Epoch 59 iteration 200 with loss 0.17963. Total time 0.93722 hours\n",
      "Training at Epoch 59 iteration 300 with loss 0.22543. Total time 0.94138 hours\n",
      "Validation at Epoch 59 , MSE: 0.22694 , Pearson Correlation: 0.84873 with p-value: 0.0 , Concordance Index: 0.85316\n",
      "Training at Epoch 60 iteration 0 with loss 0.20455. Total time 0.94472 hours\n",
      "Training at Epoch 60 iteration 100 with loss 0.15376. Total time 0.94861 hours\n",
      "Training at Epoch 60 iteration 200 with loss 0.21153. Total time 0.95277 hours\n",
      "Training at Epoch 60 iteration 300 with loss 0.18596. Total time 0.95694 hours\n",
      "Validation at Epoch 60 , MSE: 0.20121 , Pearson Correlation: 0.85085 with p-value: 0.0 , Concordance Index: 0.86019\n",
      "Training at Epoch 61 iteration 0 with loss 0.16309. Total time 0.96 hours\n",
      "Training at Epoch 61 iteration 100 with loss 0.17943. Total time 0.96416 hours\n",
      "Training at Epoch 61 iteration 200 with loss 0.17186. Total time 0.96833 hours\n",
      "Training at Epoch 61 iteration 300 with loss 0.13873. Total time 0.97222 hours\n",
      "Validation at Epoch 61 , MSE: 0.19261 , Pearson Correlation: 0.85477 with p-value: 0.0 , Concordance Index: 0.86117\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 60 Testing MSE: 0.2624158202551516 , Pearson Correlation: 0.8035622764987833 with p-value: 0.0 , Concordance Index: 0.7981663625453822\n",
      "Training at Epoch 62 iteration 0 with loss 0.14076. Total time 0.97944 hours\n",
      "Training at Epoch 62 iteration 100 with loss 0.14708. Total time 0.98361 hours\n",
      "Training at Epoch 62 iteration 200 with loss 0.22223. Total time 0.9875 hours\n",
      "Training at Epoch 62 iteration 300 with loss 0.19078. Total time 0.99166 hours\n",
      "Validation at Epoch 62 , MSE: 0.19524 , Pearson Correlation: 0.85425 with p-value: 0.0 , Concordance Index: 0.86101\n",
      "Training at Epoch 63 iteration 0 with loss 0.14708. Total time 0.99472 hours\n",
      "Training at Epoch 63 iteration 100 with loss 0.16952. Total time 0.99888 hours\n",
      "Training at Epoch 63 iteration 200 with loss 0.15173. Total time 1.00277 hours\n",
      "Training at Epoch 63 iteration 300 with loss 0.17085. Total time 1.00694 hours\n",
      "Validation at Epoch 63 , MSE: 0.18632 , Pearson Correlation: 0.85716 with p-value: 0.0 , Concordance Index: 0.86111\n",
      "Training at Epoch 64 iteration 0 with loss 0.27408. Total time 1.01 hours\n",
      "Training at Epoch 64 iteration 100 with loss 0.18619. Total time 1.01416 hours\n",
      "Training at Epoch 64 iteration 200 with loss 0.22168. Total time 1.01805 hours\n",
      "Training at Epoch 64 iteration 300 with loss 0.21351. Total time 1.02222 hours\n",
      "Validation at Epoch 64 , MSE: 0.19116 , Pearson Correlation: 0.85847 with p-value: 0.0 , Concordance Index: 0.86113\n",
      "Training at Epoch 65 iteration 0 with loss 0.17174. Total time 1.02527 hours\n",
      "Training at Epoch 65 iteration 100 with loss 0.19802. Total time 1.02944 hours\n",
      "Training at Epoch 65 iteration 200 with loss 0.20858. Total time 1.03333 hours\n",
      "Training at Epoch 65 iteration 300 with loss 0.19293. Total time 1.0375 hours\n",
      "Validation at Epoch 65 , MSE: 0.19882 , Pearson Correlation: 0.85600 with p-value: 0.0 , Concordance Index: 0.86092\n",
      "Training at Epoch 66 iteration 0 with loss 0.16814. Total time 1.04055 hours\n",
      "Training at Epoch 66 iteration 100 with loss 0.17610. Total time 1.04472 hours\n",
      "Training at Epoch 66 iteration 200 with loss 0.18935. Total time 1.04861 hours\n",
      "Training at Epoch 66 iteration 300 with loss 0.18060. Total time 1.05277 hours\n",
      "Validation at Epoch 66 , MSE: 0.18409 , Pearson Correlation: 0.86041 with p-value: 0.0 , Concordance Index: 0.86648\n",
      "Training at Epoch 67 iteration 0 with loss 0.13658. Total time 1.05583 hours\n",
      "Training at Epoch 67 iteration 100 with loss 0.16570. Total time 1.06 hours\n",
      "Training at Epoch 67 iteration 200 with loss 0.16229. Total time 1.06388 hours\n",
      "Training at Epoch 67 iteration 300 with loss 0.14304. Total time 1.06805 hours\n",
      "Validation at Epoch 67 , MSE: 0.18879 , Pearson Correlation: 0.85862 with p-value: 0.0 , Concordance Index: 0.86591\n",
      "Training at Epoch 68 iteration 0 with loss 0.13009. Total time 1.07111 hours\n",
      "Training at Epoch 68 iteration 100 with loss 0.14999. Total time 1.07527 hours\n",
      "Training at Epoch 68 iteration 200 with loss 0.12742. Total time 1.07916 hours\n",
      "Training at Epoch 68 iteration 300 with loss 0.18712. Total time 1.08333 hours\n",
      "Validation at Epoch 68 , MSE: 0.18801 , Pearson Correlation: 0.85830 with p-value: 0.0 , Concordance Index: 0.86423\n",
      "Training at Epoch 69 iteration 0 with loss 0.16093. Total time 1.08638 hours\n",
      "Training at Epoch 69 iteration 100 with loss 0.19911. Total time 1.09055 hours\n",
      "Training at Epoch 69 iteration 200 with loss 0.16799. Total time 1.09444 hours\n",
      "Training at Epoch 69 iteration 300 with loss 0.18101. Total time 1.09861 hours\n",
      "Validation at Epoch 69 , MSE: 0.19039 , Pearson Correlation: 0.85431 with p-value: 0.0 , Concordance Index: 0.86248\n",
      "Training at Epoch 70 iteration 0 with loss 0.15097. Total time 1.10166 hours\n",
      "Training at Epoch 70 iteration 100 with loss 0.18842. Total time 1.10583 hours\n",
      "Training at Epoch 70 iteration 200 with loss 0.12253. Total time 1.10972 hours\n",
      "Training at Epoch 70 iteration 300 with loss 0.20967. Total time 1.11388 hours\n",
      "Validation at Epoch 70 , MSE: 0.18775 , Pearson Correlation: 0.85973 with p-value: 0.0 , Concordance Index: 0.86582\n",
      "Training at Epoch 71 iteration 0 with loss 0.15590. Total time 1.11694 hours\n",
      "Training at Epoch 71 iteration 100 with loss 0.19442. Total time 1.12111 hours\n",
      "Training at Epoch 71 iteration 200 with loss 0.12328. Total time 1.125 hours\n",
      "Training at Epoch 71 iteration 300 with loss 0.14641. Total time 1.12916 hours\n",
      "Validation at Epoch 71 , MSE: 0.20487 , Pearson Correlation: 0.86048 with p-value: 0.0 , Concordance Index: 0.86643\n",
      "Training at Epoch 72 iteration 0 with loss 0.16664. Total time 1.13222 hours\n",
      "Training at Epoch 72 iteration 100 with loss 0.14492. Total time 1.13638 hours\n",
      "Training at Epoch 72 iteration 200 with loss 0.18517. Total time 1.14027 hours\n",
      "Training at Epoch 72 iteration 300 with loss 0.14331. Total time 1.14444 hours\n",
      "Validation at Epoch 72 , MSE: 0.18589 , Pearson Correlation: 0.85898 with p-value: 0.0 , Concordance Index: 0.86547\n",
      "Training at Epoch 73 iteration 0 with loss 0.09333. Total time 1.1475 hours\n",
      "Training at Epoch 73 iteration 100 with loss 0.13858. Total time 1.15166 hours\n",
      "Training at Epoch 73 iteration 200 with loss 0.20647. Total time 1.15555 hours\n",
      "Training at Epoch 73 iteration 300 with loss 0.13993. Total time 1.15972 hours\n",
      "Validation at Epoch 73 , MSE: 0.18066 , Pearson Correlation: 0.86299 with p-value: 0.0 , Concordance Index: 0.86789\n",
      "Training at Epoch 74 iteration 0 with loss 0.13296. Total time 1.16277 hours\n",
      "Training at Epoch 74 iteration 100 with loss 0.15095. Total time 1.16666 hours\n",
      "Training at Epoch 74 iteration 200 with loss 0.17113. Total time 1.17083 hours\n",
      "Training at Epoch 74 iteration 300 with loss 0.14523. Total time 1.17472 hours\n",
      "Validation at Epoch 74 , MSE: 0.18693 , Pearson Correlation: 0.86054 with p-value: 0.0 , Concordance Index: 0.86906\n",
      "Training at Epoch 75 iteration 0 with loss 0.12845. Total time 1.17805 hours\n",
      "Training at Epoch 75 iteration 100 with loss 0.13796. Total time 1.18194 hours\n",
      "Training at Epoch 75 iteration 200 with loss 0.14598. Total time 1.18611 hours\n",
      "Training at Epoch 75 iteration 300 with loss 0.12170. Total time 1.19 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Validation at Epoch 75 , MSE: 0.18386 , Pearson Correlation: 0.86031 with p-value: 0.0 , Concordance Index: 0.86754\n",
      "Training at Epoch 76 iteration 0 with loss 0.15968. Total time 1.19333 hours\n",
      "Training at Epoch 76 iteration 100 with loss 0.15615. Total time 1.19722 hours\n",
      "Training at Epoch 76 iteration 200 with loss 0.19576. Total time 1.20138 hours\n",
      "Training at Epoch 76 iteration 300 with loss 0.16442. Total time 1.20527 hours\n",
      "Validation at Epoch 76 , MSE: 0.18462 , Pearson Correlation: 0.85829 with p-value: 0.0 , Concordance Index: 0.86645\n",
      "Training at Epoch 77 iteration 0 with loss 0.11613. Total time 1.20833 hours\n",
      "Training at Epoch 77 iteration 100 with loss 0.15216. Total time 1.2125 hours\n",
      "Training at Epoch 77 iteration 200 with loss 0.14481. Total time 1.21666 hours\n",
      "Training at Epoch 77 iteration 300 with loss 0.13425. Total time 1.22055 hours\n",
      "Validation at Epoch 77 , MSE: 0.18510 , Pearson Correlation: 0.86051 with p-value: 0.0 , Concordance Index: 0.86954\n",
      "Training at Epoch 78 iteration 0 with loss 0.12041. Total time 1.22361 hours\n",
      "Training at Epoch 78 iteration 100 with loss 0.14046. Total time 1.22777 hours\n",
      "Training at Epoch 78 iteration 200 with loss 0.14797. Total time 1.23194 hours\n",
      "Training at Epoch 78 iteration 300 with loss 0.13467. Total time 1.23611 hours\n",
      "Validation at Epoch 78 , MSE: 0.18449 , Pearson Correlation: 0.86130 with p-value: 0.0 , Concordance Index: 0.86848\n",
      "Training at Epoch 79 iteration 0 with loss 0.16215. Total time 1.23888 hours\n",
      "Training at Epoch 79 iteration 100 with loss 0.14699. Total time 1.24305 hours\n",
      "Training at Epoch 79 iteration 200 with loss 0.10516. Total time 1.24722 hours\n",
      "Training at Epoch 79 iteration 300 with loss 0.16447. Total time 1.25111 hours\n",
      "Validation at Epoch 79 , MSE: 0.19120 , Pearson Correlation: 0.85709 with p-value: 0.0 , Concordance Index: 0.86797\n",
      "Training at Epoch 80 iteration 0 with loss 0.12416. Total time 1.25416 hours\n",
      "Training at Epoch 80 iteration 100 with loss 0.15789. Total time 1.25833 hours\n",
      "Training at Epoch 80 iteration 200 with loss 0.11463. Total time 1.2625 hours\n",
      "Training at Epoch 80 iteration 300 with loss 0.13899. Total time 1.26638 hours\n",
      "Validation at Epoch 80 , MSE: 0.19205 , Pearson Correlation: 0.85786 with p-value: 0.0 , Concordance Index: 0.86731\n",
      "Training at Epoch 81 iteration 0 with loss 0.15927. Total time 1.26944 hours\n",
      "Training at Epoch 81 iteration 100 with loss 0.13723. Total time 1.27361 hours\n",
      "Training at Epoch 81 iteration 200 with loss 0.11654. Total time 1.27777 hours\n",
      "Training at Epoch 81 iteration 300 with loss 0.13908. Total time 1.28166 hours\n",
      "Validation at Epoch 81 , MSE: 0.18368 , Pearson Correlation: 0.85955 with p-value: 0.0 , Concordance Index: 0.86834\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 80 Testing MSE: 0.24566197750362875 , Pearson Correlation: 0.8082668214040599 with p-value: 0.0 , Concordance Index: 0.8097968594549874\n",
      "Training at Epoch 82 iteration 0 with loss 0.12130. Total time 1.28861 hours\n",
      "Training at Epoch 82 iteration 100 with loss 0.15998. Total time 1.29277 hours\n",
      "Training at Epoch 82 iteration 200 with loss 0.16848. Total time 1.29694 hours\n",
      "Training at Epoch 82 iteration 300 with loss 0.11415. Total time 1.30083 hours\n",
      "Validation at Epoch 82 , MSE: 0.18689 , Pearson Correlation: 0.85789 with p-value: 0.0 , Concordance Index: 0.86689\n",
      "Training at Epoch 83 iteration 0 with loss 0.12427. Total time 1.30388 hours\n",
      "Training at Epoch 83 iteration 100 with loss 0.15111. Total time 1.30805 hours\n",
      "Training at Epoch 83 iteration 200 with loss 0.15321. Total time 1.31222 hours\n",
      "Training at Epoch 83 iteration 300 with loss 0.14026. Total time 1.31611 hours\n",
      "Validation at Epoch 83 , MSE: 0.18622 , Pearson Correlation: 0.86090 with p-value: 0.0 , Concordance Index: 0.86890\n",
      "Training at Epoch 84 iteration 0 with loss 0.13410. Total time 1.31916 hours\n",
      "Training at Epoch 84 iteration 100 with loss 0.13321. Total time 1.32333 hours\n",
      "Training at Epoch 84 iteration 200 with loss 0.13642. Total time 1.32722 hours\n",
      "Training at Epoch 84 iteration 300 with loss 0.14764. Total time 1.33138 hours\n",
      "Validation at Epoch 84 , MSE: 0.18513 , Pearson Correlation: 0.85866 with p-value: 0.0 , Concordance Index: 0.86865\n",
      "Training at Epoch 85 iteration 0 with loss 0.15812. Total time 1.33444 hours\n",
      "Training at Epoch 85 iteration 100 with loss 0.11993. Total time 1.33861 hours\n",
      "Training at Epoch 85 iteration 200 with loss 0.14642. Total time 1.3425 hours\n",
      "Training at Epoch 85 iteration 300 with loss 0.14039. Total time 1.34666 hours\n",
      "Validation at Epoch 85 , MSE: 0.17901 , Pearson Correlation: 0.86463 with p-value: 0.0 , Concordance Index: 0.87022\n",
      "Training at Epoch 86 iteration 0 with loss 0.09482. Total time 1.34972 hours\n",
      "Training at Epoch 86 iteration 100 with loss 0.13881. Total time 1.35388 hours\n",
      "Training at Epoch 86 iteration 200 with loss 0.11502. Total time 1.35777 hours\n",
      "Training at Epoch 86 iteration 300 with loss 0.12738. Total time 1.36194 hours\n",
      "Validation at Epoch 86 , MSE: 0.18424 , Pearson Correlation: 0.86030 with p-value: 0.0 , Concordance Index: 0.86913\n",
      "Training at Epoch 87 iteration 0 with loss 0.10268. Total time 1.365 hours\n",
      "Training at Epoch 87 iteration 100 with loss 0.11613. Total time 1.36888 hours\n",
      "Training at Epoch 87 iteration 200 with loss 0.14881. Total time 1.37305 hours\n",
      "Training at Epoch 87 iteration 300 with loss 0.16633. Total time 1.37722 hours\n",
      "Validation at Epoch 87 , MSE: 0.18764 , Pearson Correlation: 0.85679 with p-value: 0.0 , Concordance Index: 0.86836\n",
      "Training at Epoch 88 iteration 0 with loss 0.14785. Total time 1.38027 hours\n",
      "Training at Epoch 88 iteration 100 with loss 0.12619. Total time 1.38416 hours\n",
      "Training at Epoch 88 iteration 200 with loss 0.10892. Total time 1.38833 hours\n",
      "Training at Epoch 88 iteration 300 with loss 0.14964. Total time 1.39222 hours\n",
      "Validation at Epoch 88 , MSE: 0.19487 , Pearson Correlation: 0.86065 with p-value: 0.0 , Concordance Index: 0.87050\n",
      "Training at Epoch 89 iteration 0 with loss 0.12216. Total time 1.39527 hours\n",
      "Training at Epoch 89 iteration 100 with loss 0.13827. Total time 1.39944 hours\n",
      "Training at Epoch 89 iteration 200 with loss 0.12359. Total time 1.40361 hours\n",
      "Training at Epoch 89 iteration 300 with loss 0.12776. Total time 1.4075 hours\n",
      "Validation at Epoch 89 , MSE: 0.17816 , Pearson Correlation: 0.86515 with p-value: 0.0 , Concordance Index: 0.87288\n",
      "Training at Epoch 90 iteration 0 with loss 0.11819. Total time 1.41055 hours\n",
      "Training at Epoch 90 iteration 100 with loss 0.14835. Total time 1.41472 hours\n",
      "Training at Epoch 90 iteration 200 with loss 0.11535. Total time 1.41888 hours\n",
      "Training at Epoch 90 iteration 300 with loss 0.13915. Total time 1.42277 hours\n",
      "Validation at Epoch 90 , MSE: 0.18220 , Pearson Correlation: 0.86123 with p-value: 0.0 , Concordance Index: 0.86801\n",
      "Training at Epoch 91 iteration 0 with loss 0.13571. Total time 1.42583 hours\n",
      "Training at Epoch 91 iteration 100 with loss 0.11739. Total time 1.43 hours\n",
      "Training at Epoch 91 iteration 200 with loss 0.10542. Total time 1.43416 hours\n",
      "Training at Epoch 91 iteration 300 with loss 0.14041. Total time 1.43805 hours\n",
      "Validation at Epoch 91 , MSE: 0.18349 , Pearson Correlation: 0.85960 with p-value: 0.0 , Concordance Index: 0.87146\n",
      "Training at Epoch 92 iteration 0 with loss 0.11476. Total time 1.44111 hours\n",
      "Training at Epoch 92 iteration 100 with loss 0.10277. Total time 1.44527 hours\n",
      "Training at Epoch 92 iteration 200 with loss 0.12010. Total time 1.44944 hours\n",
      "Training at Epoch 92 iteration 300 with loss 0.13034. Total time 1.45333 hours\n",
      "Validation at Epoch 92 , MSE: 0.17912 , Pearson Correlation: 0.86493 with p-value: 0.0 , Concordance Index: 0.87394\n",
      "Training at Epoch 93 iteration 0 with loss 0.11949. Total time 1.45638 hours\n",
      "Training at Epoch 93 iteration 100 with loss 0.10303. Total time 1.46055 hours\n",
      "Training at Epoch 93 iteration 200 with loss 0.10027. Total time 1.46444 hours\n",
      "Training at Epoch 93 iteration 300 with loss 0.12401. Total time 1.46861 hours\n",
      "Validation at Epoch 93 , MSE: 0.17618 , Pearson Correlation: 0.86546 with p-value: 0.0 , Concordance Index: 0.87007\n",
      "Training at Epoch 94 iteration 0 with loss 0.09997. Total time 1.47166 hours\n",
      "Training at Epoch 94 iteration 100 with loss 0.10199. Total time 1.47583 hours\n",
      "Training at Epoch 94 iteration 200 with loss 0.10446. Total time 1.47972 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 94 iteration 300 with loss 0.11985. Total time 1.48388 hours\n",
      "Validation at Epoch 94 , MSE: 0.18134 , Pearson Correlation: 0.86383 with p-value: 0.0 , Concordance Index: 0.87176\n",
      "Training at Epoch 95 iteration 0 with loss 0.12194. Total time 1.48694 hours\n",
      "Training at Epoch 95 iteration 100 with loss 0.11651. Total time 1.49083 hours\n",
      "Training at Epoch 95 iteration 200 with loss 0.12724. Total time 1.495 hours\n",
      "Training at Epoch 95 iteration 300 with loss 0.10866. Total time 1.49888 hours\n",
      "Validation at Epoch 95 , MSE: 0.18135 , Pearson Correlation: 0.86218 with p-value: 0.0 , Concordance Index: 0.87254\n",
      "Training at Epoch 96 iteration 0 with loss 0.12012. Total time 1.50194 hours\n",
      "Training at Epoch 96 iteration 100 with loss 0.12580. Total time 1.50583 hours\n",
      "Training at Epoch 96 iteration 200 with loss 0.12200. Total time 1.51 hours\n",
      "Training at Epoch 96 iteration 300 with loss 0.11463. Total time 1.51388 hours\n",
      "Validation at Epoch 96 , MSE: 0.18258 , Pearson Correlation: 0.86425 with p-value: 0.0 , Concordance Index: 0.87164\n",
      "Training at Epoch 97 iteration 0 with loss 0.10499. Total time 1.51694 hours\n",
      "Training at Epoch 97 iteration 100 with loss 0.10645. Total time 1.52083 hours\n",
      "Training at Epoch 97 iteration 200 with loss 0.11903. Total time 1.52472 hours\n",
      "Training at Epoch 97 iteration 300 with loss 0.10378. Total time 1.52861 hours\n",
      "Validation at Epoch 97 , MSE: 0.17805 , Pearson Correlation: 0.86432 with p-value: 0.0 , Concordance Index: 0.87262\n",
      "Training at Epoch 98 iteration 0 with loss 0.13590. Total time 1.53166 hours\n",
      "Training at Epoch 98 iteration 100 with loss 0.11787. Total time 1.53527 hours\n",
      "Training at Epoch 98 iteration 200 with loss 0.11366. Total time 1.53916 hours\n",
      "Training at Epoch 98 iteration 300 with loss 0.12201. Total time 1.54305 hours\n",
      "Validation at Epoch 98 , MSE: 0.18727 , Pearson Correlation: 0.86113 with p-value: 0.0 , Concordance Index: 0.87130\n",
      "Training at Epoch 99 iteration 0 with loss 0.12105. Total time 1.54611 hours\n",
      "Training at Epoch 99 iteration 100 with loss 0.13485. Total time 1.55 hours\n",
      "Training at Epoch 99 iteration 200 with loss 0.12815. Total time 1.55388 hours\n",
      "Training at Epoch 99 iteration 300 with loss 0.10822. Total time 1.55777 hours\n",
      "Validation at Epoch 99 , MSE: 0.18696 , Pearson Correlation: 0.86131 with p-value: 0.0 , Concordance Index: 0.87295\n",
      "Training at Epoch 100 iteration 0 with loss 0.11827. Total time 1.56055 hours\n",
      "Training at Epoch 100 iteration 100 with loss 0.11963. Total time 1.56444 hours\n",
      "Training at Epoch 100 iteration 200 with loss 0.11243. Total time 1.56833 hours\n",
      "Training at Epoch 100 iteration 300 with loss 0.08193. Total time 1.57222 hours\n",
      "Validation at Epoch 100 , MSE: 0.18307 , Pearson Correlation: 0.86145 with p-value: 0.0 , Concordance Index: 0.87079\n",
      "--- Go for Testing ---\n",
      "Testing MSE: 0.23792063567726682 , Pearson Correlation: 0.824784406945435 with p-value: 0.0 , Concordance Index: 0.8195253117412807\n",
      "--- Training Finished ---\n"
     ]
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYoAAAELCAYAAADHksFtAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjMsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+AADFEAAAeJ0lEQVR4nO3de5hcVZnv8e8vAYEIngRolElINwKjAuPR2KMgihf0CBnHqKMO2ki4eDIIjqDOGXEyjjhDvMw43o5OmIhokFZExCMjeImAMiAXO1wiCpgIJEQCCVeFCJjkPX+s1aSqsmunulO3Tv0+z1NP7b32rtpvVTr99lprr7UUEZiZmdUzqdMBmJlZd3OiMDOzUk4UZmZWyonCzMxKOVGYmVmpHTodQLPtueeeMTAw0OkwzMwmlKVLl94fEX1Fx7a7RDEwMMDIyEinwzAzm1Akrax3zE1PZmZWqq2JQtI5ktZKuqXg2N9JCkl75n1J+rykFZKWSZrVzljNzCxpd43iq8CRtYWS9gFeC6yqKD4KOCA/5gEL2xCfmZnVaGuiiIgrgQcLDn0G+Hugcj6ROcC5kVwLTJW0dxvCNDOzCh3vo5D0BuC3EXFzzaHpwN0V+6tzmZmZtVFHE4WkKcB84J+KDheUFc5gKGmepBFJI+vWrRtzHMPDMDAAkyal5+HhMb+Fmdl2q9M1iv2AfYGbJd0FzABukPQsUg1in4pzZwD3FL1JRCyKiMGIGOzrK7wNuK7hYZg3D1auhIj0PG+ek4WZ2aiOJoqI+EVE7BURAxExQEoOsyLiXuBi4Nh899MhwCMRsabZMcyfD+vXV5etX5/Kzcys/bfHfgO4BniOpNWSTiw5/VLgDmAF8CXg5Fb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Q4FLACSdRJqo7lfAW4C/AQ4Gfippt5r3ehXwfuCjpHm4luXy6cBnSOsRHEealO9KSc/Pxy8Bzszbb62IYU1RwJKOzK95FPhr4N05pqsk1U4/vR/wOeDT+XOuAS6UtH/pt2JWh5uerOdExBOSbsy7d1Q28+Qprz8JfCUiTqgov440786JwGcr3m4a8KKIuLfmGu+qeO1k4Aek+bpOBE6NiHWSfpNPuSkiVmwl7DNJk8QdFXm9A0nX5Jg+QEpWo/YEDo+I5fm8G0jJ4m3Ax7ZyHbMtuEZhVu1Q4BnAsKQdRh+kvo3bSEumVrq2NkkA5KafKyQ9AGwgTTb4p8Bzas/dGklPJ3W6fzM2L4pDpBXRrgZeUfOS5aNJIp+3llSjmYnZOLhGYVZtdCW4H9c5/lDN/hZNRfmW20uBH5JqEGuAjaS7mHYeR0zTSLO+FjVL3Qv015QVLen6xDivbeZEYVbjgfx8HKmpqNbva/aLpl/+K1It4s0R8cfRwryk58PjiOmhfJ1nFRx7FptjNmsJJwrrVU/k511qyn9GSgb7R8Ticb73FFIN4qkkIunVpKafOyvOqxdDlYh4TNJS4K2SzoiIjfk9+4GXAv93nHGaNcSJwnrVfaS/xI+WtAx4DLgzIh6Q9H+AL0rqI63o9gjpLqZXAD+JiK9v5b1/AJwGfFXSV0h9Ex8Gfltz3q/y8ymSFpP6MZbVGYfxYdJdT9+T9B/ArqQ7rR5h85rSZi3hzmzrSZHWY34Xqf3/x6TlPv8yH/tP4A2kjuevkZLFR0l/WN3UwHv/EHgvcBjwPdLKcceSVjerPO9m4Ix83atyDH9S5z1/QBqjMRW4gLTM5q3AyyKvq27WKl7hzszMSrlGYWZmpZwozMyslBOFmZmVcqIwM7NSThRmZlbKicLMzEo5UZiZWSknCjMzK/X/AfRu8K+3yvLFAAAAAElFTkSuQmCC\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "drug_encoding = 'Morgan'\n",
    "target_encoding = 'AAC'\n",
    "train, val, test = data_process(X_drug, X_target, y, \n",
    "                                drug_encoding, target_encoding, \n",
    "                                split_method='random',frac=[0.7,0.1,0.2], random_seed = 5)\n",
    "\n",
    "config = generate_config(drug_encoding = drug_encoding, \n",
    "                         target_encoding = target_encoding, \n",
    "                         cls_hidden_dims = [1024,1024,512], \n",
    "                         train_epoch = 100, \n",
    "                         LR = 0.001, \n",
    "                         batch_size = 256\n",
    "                        )\n",
    "model = models.model_initialize(**config)\n",
    "model.train(train, val, test)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "in total: 118254 drug-target pairs\n",
      "encoding drug...\n",
      "unique drugs: 2068\n",
      "drug encoding finished...\n",
      "encoding protein...\n",
      "unique target sequence: 229\n",
      "-- Encoding AAC takes time. Time Reference: 24s for ~100 sequences in a CPU. Calculate your time by the unique target sequence #, instead of the entire dataset.\n",
      "protein encoding finished...\n",
      "splitting dataset...\n",
      "Done.\n",
      "Let's use 1 GPU!\n",
      "--- Data Preparation ---\n",
      "--- Go for Training ---\n",
      "Training at Epoch 1 iteration 0 with loss 137.307. Total time 0.0 hours\n",
      "Training at Epoch 1 iteration 100 with loss 1.07310. Total time 0.00416 hours\n",
      "Training at Epoch 1 iteration 200 with loss 0.74933. Total time 0.00805 hours\n",
      "Training at Epoch 1 iteration 300 with loss 0.77811. Total time 0.01194 hours\n",
      "Validation at Epoch 1 , MSE: 0.57791 , Pearson Correlation: 0.49995 with p-value: 0.0 , Concordance Index: 0.69088\n",
      "Training at Epoch 2 iteration 0 with loss 0.83909. Total time 0.015 hours\n",
      "Training at Epoch 2 iteration 100 with loss 0.62656. Total time 0.01888 hours\n",
      "Training at Epoch 2 iteration 200 with loss 0.77875. Total time 0.02305 hours\n",
      "Training at Epoch 2 iteration 300 with loss 0.67560. Total time 0.02694 hours\n",
      "Validation at Epoch 2 , MSE: 0.46532 , Pearson Correlation: 0.60749 with p-value: 0.0 , Concordance Index: 0.73663\n",
      "Training at Epoch 3 iteration 0 with loss 0.68077. Total time 0.02972 hours\n",
      "Training at Epoch 3 iteration 100 with loss 0.72599. Total time 0.03388 hours\n",
      "Training at Epoch 3 iteration 200 with loss 0.80738. Total time 0.03777 hours\n",
      "Training at Epoch 3 iteration 300 with loss 0.50838. Total time 0.04166 hours\n",
      "Validation at Epoch 3 , MSE: 0.43976 , Pearson Correlation: 0.63073 with p-value: 0.0 , Concordance Index: 0.74525\n",
      "Training at Epoch 4 iteration 0 with loss 0.68725. Total time 0.04472 hours\n",
      "Training at Epoch 4 iteration 100 with loss 0.59597. Total time 0.04861 hours\n",
      "Training at Epoch 4 iteration 200 with loss 0.46529. Total time 0.05277 hours\n",
      "Training at Epoch 4 iteration 300 with loss 0.63854. Total time 0.05666 hours\n",
      "Validation at Epoch 4 , MSE: 0.71559 , Pearson Correlation: 0.63876 with p-value: 0.0 , Concordance Index: 0.74808\n",
      "Training at Epoch 5 iteration 0 with loss 0.91736. Total time 0.05944 hours\n",
      "Training at Epoch 5 iteration 100 with loss 0.60793. Total time 0.06361 hours\n",
      "Training at Epoch 5 iteration 200 with loss 0.50325. Total time 0.0675 hours\n",
      "Training at Epoch 5 iteration 300 with loss 0.62690. Total time 0.07138 hours\n",
      "Validation at Epoch 5 , MSE: 0.60817 , Pearson Correlation: 0.64666 with p-value: 0.0 , Concordance Index: 0.75451\n",
      "Training at Epoch 6 iteration 0 with loss 0.78280. Total time 0.07444 hours\n",
      "Training at Epoch 6 iteration 100 with loss 0.68073. Total time 0.07833 hours\n",
      "Training at Epoch 6 iteration 200 with loss 0.54948. Total time 0.0825 hours\n",
      "Training at Epoch 6 iteration 300 with loss 0.66243. Total time 0.08638 hours\n",
      "Validation at Epoch 6 , MSE: 0.65652 , Pearson Correlation: 0.65003 with p-value: 0.0 , Concordance Index: 0.75045\n",
      "Training at Epoch 7 iteration 0 with loss 0.94294. Total time 0.08944 hours\n",
      "Training at Epoch 7 iteration 100 with loss 0.37406. Total time 0.09333 hours\n",
      "Training at Epoch 7 iteration 200 with loss 0.61137. Total time 0.09722 hours\n",
      "Training at Epoch 7 iteration 300 with loss 0.60774. Total time 0.10111 hours\n",
      "Validation at Epoch 7 , MSE: 0.40974 , Pearson Correlation: 0.66639 with p-value: 0.0 , Concordance Index: 0.76455\n",
      "Training at Epoch 8 iteration 0 with loss 0.56127. Total time 0.10416 hours\n",
      "Training at Epoch 8 iteration 100 with loss 1.03713. Total time 0.10805 hours\n",
      "Training at Epoch 8 iteration 200 with loss 0.92521. Total time 0.11194 hours\n",
      "Training at Epoch 8 iteration 300 with loss 0.70003. Total time 0.11611 hours\n",
      "Validation at Epoch 8 , MSE: 0.38015 , Pearson Correlation: 0.68071 with p-value: 0.0 , Concordance Index: 0.76589\n",
      "Training at Epoch 9 iteration 0 with loss 0.55653. Total time 0.11888 hours\n",
      "Training at Epoch 9 iteration 100 with loss 0.49735. Total time 0.12305 hours\n",
      "Training at Epoch 9 iteration 200 with loss 0.46478. Total time 0.12694 hours\n",
      "Training at Epoch 9 iteration 300 with loss 0.48707. Total time 0.13083 hours\n",
      "Validation at Epoch 9 , MSE: 0.34344 , Pearson Correlation: 0.71558 with p-value: 0.0 , Concordance Index: 0.77609\n",
      "Training at Epoch 10 iteration 0 with loss 0.53696. Total time 0.13388 hours\n",
      "Training at Epoch 10 iteration 100 with loss 0.42529. Total time 0.13777 hours\n",
      "Training at Epoch 10 iteration 200 with loss 0.56483. Total time 0.14194 hours\n",
      "Training at Epoch 10 iteration 300 with loss 0.33164. Total time 0.14583 hours\n",
      "Validation at Epoch 10 , MSE: 0.38232 , Pearson Correlation: 0.73288 with p-value: 0.0 , Concordance Index: 0.78721\n",
      "Training at Epoch 11 iteration 0 with loss 0.49845. Total time 0.14888 hours\n",
      "Training at Epoch 11 iteration 100 with loss 0.36312. Total time 0.15277 hours\n",
      "Training at Epoch 11 iteration 200 with loss 0.40470. Total time 0.15694 hours\n",
      "Training at Epoch 11 iteration 300 with loss 0.44330. Total time 0.16083 hours\n",
      "Validation at Epoch 11 , MSE: 0.33819 , Pearson Correlation: 0.73104 with p-value: 0.0 , Concordance Index: 0.78458\n",
      "Training at Epoch 12 iteration 0 with loss 0.44214. Total time 0.16388 hours\n",
      "Training at Epoch 12 iteration 100 with loss 0.52897. Total time 0.16777 hours\n",
      "Training at Epoch 12 iteration 200 with loss 0.40133. Total time 0.17166 hours\n",
      "Training at Epoch 12 iteration 300 with loss 0.54012. Total time 0.17583 hours\n",
      "Validation at Epoch 12 , MSE: 0.41502 , Pearson Correlation: 0.64286 with p-value: 0.0 , Concordance Index: 0.76272\n",
      "Training at Epoch 13 iteration 0 with loss 0.55120. Total time 0.17861 hours\n",
      "Training at Epoch 13 iteration 100 with loss 0.61668. Total time 0.18277 hours\n",
      "Training at Epoch 13 iteration 200 with loss 0.45506. Total time 0.18666 hours\n",
      "Training at Epoch 13 iteration 300 with loss 0.44202. Total time 0.19027 hours\n",
      "Validation at Epoch 13 , MSE: 0.54847 , Pearson Correlation: 0.67273 with p-value: 0.0 , Concordance Index: 0.76579\n",
      "Training at Epoch 14 iteration 0 with loss 0.66353. Total time 0.19333 hours\n",
      "Training at Epoch 14 iteration 100 with loss 0.46698. Total time 0.19722 hours\n",
      "Training at Epoch 14 iteration 200 with loss 0.38992. Total time 0.20111 hours\n",
      "Training at Epoch 14 iteration 300 with loss 0.49230. Total time 0.205 hours\n",
      "Validation at Epoch 14 , MSE: 0.36027 , Pearson Correlation: 0.73274 with p-value: 0.0 , Concordance Index: 0.79183\n",
      "Training at Epoch 15 iteration 0 with loss 0.41514. Total time 0.20777 hours\n",
      "Training at Epoch 15 iteration 100 with loss 0.47787. Total time 0.21166 hours\n",
      "Training at Epoch 15 iteration 200 with loss 0.48581. Total time 0.21583 hours\n",
      "Training at Epoch 15 iteration 300 with loss 0.63257. Total time 0.21944 hours\n",
      "Validation at Epoch 15 , MSE: 0.33354 , Pearson Correlation: 0.73440 with p-value: 0.0 , Concordance Index: 0.77928\n",
      "Training at Epoch 16 iteration 0 with loss 0.48718. Total time 0.2225 hours\n",
      "Training at Epoch 16 iteration 100 with loss 0.48455. Total time 0.22638 hours\n",
      "Training at Epoch 16 iteration 200 with loss 0.44427. Total time 0.23027 hours\n",
      "Training at Epoch 16 iteration 300 with loss 0.42054. Total time 0.23416 hours\n",
      "Validation at Epoch 16 , MSE: 0.34472 , Pearson Correlation: 0.74087 with p-value: 0.0 , Concordance Index: 0.79321\n",
      "Training at Epoch 17 iteration 0 with loss 0.40986. Total time 0.23694 hours\n",
      "Training at Epoch 17 iteration 100 with loss 0.47648. Total time 0.24083 hours\n",
      "Training at Epoch 17 iteration 200 with loss 0.37729. Total time 0.24472 hours\n",
      "Training at Epoch 17 iteration 300 with loss 0.40236. Total time 0.24861 hours\n",
      "Validation at Epoch 17 , MSE: 0.33150 , Pearson Correlation: 0.75259 with p-value: 0.0 , Concordance Index: 0.80040\n",
      "Training at Epoch 18 iteration 0 with loss 0.34639. Total time 0.25166 hours\n",
      "Training at Epoch 18 iteration 100 with loss 0.46342. Total time 0.25555 hours\n",
      "Training at Epoch 18 iteration 200 with loss 0.39914. Total time 0.25944 hours\n",
      "Training at Epoch 18 iteration 300 with loss 0.49273. Total time 0.26333 hours\n",
      "Validation at Epoch 18 , MSE: 0.37441 , Pearson Correlation: 0.75691 with p-value: 0.0 , Concordance Index: 0.79897\n",
      "Training at Epoch 19 iteration 0 with loss 0.40662. Total time 0.26611 hours\n",
      "Training at Epoch 19 iteration 100 with loss 0.45033. Total time 0.27 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 19 iteration 200 with loss 0.45691. Total time 0.27388 hours\n",
      "Training at Epoch 19 iteration 300 with loss 0.36536. Total time 0.27777 hours\n",
      "Validation at Epoch 19 , MSE: 0.30568 , Pearson Correlation: 0.75684 with p-value: 0.0 , Concordance Index: 0.80061\n",
      "Training at Epoch 20 iteration 0 with loss 0.44885. Total time 0.28083 hours\n",
      "Training at Epoch 20 iteration 100 with loss 0.31929. Total time 0.28472 hours\n",
      "Training at Epoch 20 iteration 200 with loss 0.33290. Total time 0.28861 hours\n",
      "Training at Epoch 20 iteration 300 with loss 0.45104. Total time 0.2925 hours\n",
      "Validation at Epoch 20 , MSE: 0.30569 , Pearson Correlation: 0.75716 with p-value: 0.0 , Concordance Index: 0.80292\n",
      "Training at Epoch 21 iteration 0 with loss 0.47470. Total time 0.29527 hours\n",
      "Training at Epoch 21 iteration 100 with loss 0.36121. Total time 0.29916 hours\n",
      "Training at Epoch 21 iteration 200 with loss 0.45020. Total time 0.30305 hours\n",
      "Training at Epoch 21 iteration 300 with loss 0.40576. Total time 0.30666 hours\n",
      "Validation at Epoch 21 , MSE: 0.30063 , Pearson Correlation: 0.75968 with p-value: 0.0 , Concordance Index: 0.80477\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 20 Testing MSE: 0.40701330281325476 , Pearson Correlation: 0.6741687945208862 with p-value: 0.0 , Concordance Index: 0.7357185809189245\n",
      "Training at Epoch 22 iteration 0 with loss 0.34956. Total time 0.31333 hours\n",
      "Training at Epoch 22 iteration 100 with loss 0.33574. Total time 0.31722 hours\n",
      "Training at Epoch 22 iteration 200 with loss 0.48775. Total time 0.32083 hours\n",
      "Training at Epoch 22 iteration 300 with loss 0.36133. Total time 0.32472 hours\n",
      "Validation at Epoch 22 , MSE: 0.29045 , Pearson Correlation: 0.76711 with p-value: 0.0 , Concordance Index: 0.80743\n",
      "Training at Epoch 23 iteration 0 with loss 0.27351. Total time 0.3275 hours\n",
      "Training at Epoch 23 iteration 100 with loss 0.36116. Total time 0.33138 hours\n",
      "Training at Epoch 23 iteration 200 with loss 0.37921. Total time 0.335 hours\n",
      "Training at Epoch 23 iteration 300 with loss 0.43623. Total time 0.33861 hours\n",
      "Validation at Epoch 23 , MSE: 0.30942 , Pearson Correlation: 0.76496 with p-value: 0.0 , Concordance Index: 0.80643\n",
      "Training at Epoch 24 iteration 0 with loss 0.32031. Total time 0.34166 hours\n",
      "Training at Epoch 24 iteration 100 with loss 0.41695. Total time 0.34527 hours\n",
      "Training at Epoch 24 iteration 200 with loss 0.44170. Total time 0.34916 hours\n",
      "Training at Epoch 24 iteration 300 with loss 0.23536. Total time 0.35277 hours\n",
      "Validation at Epoch 24 , MSE: 0.29901 , Pearson Correlation: 0.76508 with p-value: 0.0 , Concordance Index: 0.80470\n",
      "Training at Epoch 25 iteration 0 with loss 0.31161. Total time 0.35583 hours\n",
      "Training at Epoch 25 iteration 100 with loss 0.33979. Total time 0.35944 hours\n",
      "Training at Epoch 25 iteration 200 with loss 0.40056. Total time 0.36333 hours\n",
      "Training at Epoch 25 iteration 300 with loss 0.32283. Total time 0.36694 hours\n",
      "Validation at Epoch 25 , MSE: 0.30694 , Pearson Correlation: 0.76138 with p-value: 0.0 , Concordance Index: 0.80752\n",
      "Training at Epoch 26 iteration 0 with loss 0.36218. Total time 0.36972 hours\n",
      "Training at Epoch 26 iteration 100 with loss 0.40518. Total time 0.37361 hours\n",
      "Training at Epoch 26 iteration 200 with loss 0.27218. Total time 0.3775 hours\n",
      "Training at Epoch 26 iteration 300 with loss 0.35477. Total time 0.38111 hours\n",
      "Validation at Epoch 26 , MSE: 0.29005 , Pearson Correlation: 0.76735 with p-value: 0.0 , Concordance Index: 0.80801\n",
      "Training at Epoch 27 iteration 0 with loss 0.35508. Total time 0.38388 hours\n",
      "Training at Epoch 27 iteration 100 with loss 0.35186. Total time 0.38777 hours\n",
      "Training at Epoch 27 iteration 200 with loss 0.35472. Total time 0.39166 hours\n",
      "Training at Epoch 27 iteration 300 with loss 0.48098. Total time 0.39527 hours\n",
      "Validation at Epoch 27 , MSE: 0.29189 , Pearson Correlation: 0.76546 with p-value: 0.0 , Concordance Index: 0.80114\n",
      "Training at Epoch 28 iteration 0 with loss 0.36010. Total time 0.39805 hours\n",
      "Training at Epoch 28 iteration 100 with loss 0.43377. Total time 0.40194 hours\n",
      "Training at Epoch 28 iteration 200 with loss 0.35029. Total time 0.40555 hours\n",
      "Training at Epoch 28 iteration 300 with loss 0.43348. Total time 0.40944 hours\n",
      "Validation at Epoch 28 , MSE: 0.34255 , Pearson Correlation: 0.76456 with p-value: 0.0 , Concordance Index: 0.80131\n",
      "Training at Epoch 29 iteration 0 with loss 0.29631. Total time 0.41222 hours\n",
      "Training at Epoch 29 iteration 100 with loss 0.36732. Total time 0.41611 hours\n",
      "Training at Epoch 29 iteration 200 with loss 0.42399. Total time 0.41972 hours\n",
      "Training at Epoch 29 iteration 300 with loss 0.41610. Total time 0.42333 hours\n",
      "Validation at Epoch 29 , MSE: 0.29178 , Pearson Correlation: 0.77852 with p-value: 0.0 , Concordance Index: 0.81568\n",
      "Training at Epoch 30 iteration 0 with loss 0.41806. Total time 0.42638 hours\n",
      "Training at Epoch 30 iteration 100 with loss 0.36838. Total time 0.43 hours\n",
      "Training at Epoch 30 iteration 200 with loss 0.39534. Total time 0.43388 hours\n",
      "Training at Epoch 30 iteration 300 with loss 0.39346. Total time 0.4375 hours\n",
      "Validation at Epoch 30 , MSE: 0.28262 , Pearson Correlation: 0.78106 with p-value: 0.0 , Concordance Index: 0.81382\n",
      "Training at Epoch 31 iteration 0 with loss 0.30020. Total time 0.44055 hours\n",
      "Training at Epoch 31 iteration 100 with loss 0.37336. Total time 0.44416 hours\n",
      "Training at Epoch 31 iteration 200 with loss 0.34954. Total time 0.44805 hours\n",
      "Training at Epoch 31 iteration 300 with loss 0.35928. Total time 0.45166 hours\n",
      "Validation at Epoch 31 , MSE: 0.27448 , Pearson Correlation: 0.78302 with p-value: 0.0 , Concordance Index: 0.81724\n",
      "Training at Epoch 32 iteration 0 with loss 0.30788. Total time 0.45472 hours\n",
      "Training at Epoch 32 iteration 100 with loss 0.31501. Total time 0.45833 hours\n",
      "Training at Epoch 32 iteration 200 with loss 0.37851. Total time 0.46222 hours\n",
      "Training at Epoch 32 iteration 300 with loss 0.32667. Total time 0.46583 hours\n",
      "Validation at Epoch 32 , MSE: 0.27325 , Pearson Correlation: 0.79053 with p-value: 0.0 , Concordance Index: 0.82102\n",
      "Training at Epoch 33 iteration 0 with loss 0.31295. Total time 0.46861 hours\n",
      "Training at Epoch 33 iteration 100 with loss 0.38247. Total time 0.4725 hours\n",
      "Training at Epoch 33 iteration 200 with loss 0.27561. Total time 0.47611 hours\n",
      "Training at Epoch 33 iteration 300 with loss 0.32624. Total time 0.48 hours\n",
      "Validation at Epoch 33 , MSE: 0.26649 , Pearson Correlation: 0.79053 with p-value: 0.0 , Concordance Index: 0.81919\n",
      "Training at Epoch 34 iteration 0 with loss 0.39280. Total time 0.48277 hours\n",
      "Training at Epoch 34 iteration 100 with loss 0.29773. Total time 0.48666 hours\n",
      "Training at Epoch 34 iteration 200 with loss 0.35080. Total time 0.49027 hours\n",
      "Training at Epoch 34 iteration 300 with loss 0.35346. Total time 0.49416 hours\n",
      "Validation at Epoch 34 , MSE: 0.29631 , Pearson Correlation: 0.79134 with p-value: 0.0 , Concordance Index: 0.81828\n",
      "Training at Epoch 35 iteration 0 with loss 0.37118. Total time 0.49694 hours\n",
      "Training at Epoch 35 iteration 100 with loss 0.37295. Total time 0.50055 hours\n",
      "Training at Epoch 35 iteration 200 with loss 0.44023. Total time 0.50444 hours\n",
      "Training at Epoch 35 iteration 300 with loss 0.30153. Total time 0.50805 hours\n",
      "Validation at Epoch 35 , MSE: 0.30078 , Pearson Correlation: 0.79391 with p-value: 0.0 , Concordance Index: 0.82066\n",
      "Training at Epoch 36 iteration 0 with loss 0.39369. Total time 0.51083 hours\n",
      "Training at Epoch 36 iteration 100 with loss 0.36241. Total time 0.51472 hours\n",
      "Training at Epoch 36 iteration 200 with loss 0.32201. Total time 0.51861 hours\n",
      "Training at Epoch 36 iteration 300 with loss 0.30015. Total time 0.52222 hours\n",
      "Validation at Epoch 36 , MSE: 0.25221 , Pearson Correlation: 0.80465 with p-value: 0.0 , Concordance Index: 0.82609\n",
      "Training at Epoch 37 iteration 0 with loss 0.30673. Total time 0.525 hours\n",
      "Training at Epoch 37 iteration 100 with loss 0.36023. Total time 0.52888 hours\n",
      "Training at Epoch 37 iteration 200 with loss 0.32268. Total time 0.5325 hours\n",
      "Training at Epoch 37 iteration 300 with loss 0.30291. Total time 0.53638 hours\n",
      "Validation at Epoch 37 , MSE: 0.26600 , Pearson Correlation: 0.80124 with p-value: 0.0 , Concordance Index: 0.82472\n",
      "Training at Epoch 38 iteration 0 with loss 0.33432. Total time 0.53916 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 38 iteration 100 with loss 0.40219. Total time 0.54305 hours\n",
      "Training at Epoch 38 iteration 200 with loss 0.34551. Total time 0.54666 hours\n",
      "Training at Epoch 38 iteration 300 with loss 0.32815. Total time 0.55055 hours\n",
      "Validation at Epoch 38 , MSE: 0.25225 , Pearson Correlation: 0.80165 with p-value: 0.0 , Concordance Index: 0.82640\n",
      "Training at Epoch 39 iteration 0 with loss 0.31594. Total time 0.55333 hours\n",
      "Training at Epoch 39 iteration 100 with loss 0.34882. Total time 0.55694 hours\n",
      "Training at Epoch 39 iteration 200 with loss 0.29390. Total time 0.56083 hours\n",
      "Training at Epoch 39 iteration 300 with loss 0.33880. Total time 0.56444 hours\n",
      "Validation at Epoch 39 , MSE: 0.24947 , Pearson Correlation: 0.80661 with p-value: 0.0 , Concordance Index: 0.82728\n",
      "Training at Epoch 40 iteration 0 with loss 0.30424. Total time 0.56722 hours\n",
      "Training at Epoch 40 iteration 100 with loss 0.34012. Total time 0.57111 hours\n",
      "Training at Epoch 40 iteration 200 with loss 0.28285. Total time 0.57472 hours\n",
      "Training at Epoch 40 iteration 300 with loss 0.25721. Total time 0.57861 hours\n",
      "Validation at Epoch 40 , MSE: 0.24790 , Pearson Correlation: 0.80724 with p-value: 0.0 , Concordance Index: 0.82643\n",
      "Training at Epoch 41 iteration 0 with loss 0.27089. Total time 0.58138 hours\n",
      "Training at Epoch 41 iteration 100 with loss 0.25720. Total time 0.58527 hours\n",
      "Training at Epoch 41 iteration 200 with loss 0.34013. Total time 0.58888 hours\n",
      "Training at Epoch 41 iteration 300 with loss 0.22758. Total time 0.5925 hours\n",
      "Validation at Epoch 41 , MSE: 0.25064 , Pearson Correlation: 0.80995 with p-value: 0.0 , Concordance Index: 0.82490\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 40 Testing MSE: 0.34465658096673263 , Pearson Correlation: 0.7517501987282205 with p-value: 0.0 , Concordance Index: 0.7684465047864567\n",
      "Training at Epoch 42 iteration 0 with loss 0.28605. Total time 0.59916 hours\n",
      "Training at Epoch 42 iteration 100 with loss 0.30878. Total time 0.60305 hours\n",
      "Training at Epoch 42 iteration 200 with loss 0.29791. Total time 0.60666 hours\n",
      "Training at Epoch 42 iteration 300 with loss 0.27215. Total time 0.61027 hours\n",
      "Validation at Epoch 42 , MSE: 0.24627 , Pearson Correlation: 0.81223 with p-value: 0.0 , Concordance Index: 0.83139\n",
      "Training at Epoch 43 iteration 0 with loss 0.29365. Total time 0.61333 hours\n",
      "Training at Epoch 43 iteration 100 with loss 0.25627. Total time 0.61694 hours\n",
      "Training at Epoch 43 iteration 200 with loss 0.36412. Total time 0.62083 hours\n",
      "Training at Epoch 43 iteration 300 with loss 0.32518. Total time 0.62472 hours\n",
      "Validation at Epoch 43 , MSE: 0.26414 , Pearson Correlation: 0.81529 with p-value: 0.0 , Concordance Index: 0.83534\n",
      "Training at Epoch 44 iteration 0 with loss 0.28861. Total time 0.6275 hours\n",
      "Training at Epoch 44 iteration 100 with loss 0.26285. Total time 0.63111 hours\n",
      "Training at Epoch 44 iteration 200 with loss 0.28644. Total time 0.635 hours\n",
      "Training at Epoch 44 iteration 300 with loss 0.33062. Total time 0.63861 hours\n",
      "Validation at Epoch 44 , MSE: 0.26110 , Pearson Correlation: 0.80737 with p-value: 0.0 , Concordance Index: 0.82841\n",
      "Training at Epoch 45 iteration 0 with loss 0.33165. Total time 0.64138 hours\n",
      "Training at Epoch 45 iteration 100 with loss 0.26096. Total time 0.64527 hours\n",
      "Training at Epoch 45 iteration 200 with loss 0.34388. Total time 0.64916 hours\n",
      "Training at Epoch 45 iteration 300 with loss 0.28926. Total time 0.65277 hours\n",
      "Validation at Epoch 45 , MSE: 0.23613 , Pearson Correlation: 0.82236 with p-value: 0.0 , Concordance Index: 0.83409\n",
      "Training at Epoch 46 iteration 0 with loss 0.20500. Total time 0.65555 hours\n",
      "Training at Epoch 46 iteration 100 with loss 0.30779. Total time 0.65944 hours\n",
      "Training at Epoch 46 iteration 200 with loss 0.27946. Total time 0.66333 hours\n",
      "Training at Epoch 46 iteration 300 with loss 0.25379. Total time 0.66694 hours\n",
      "Validation at Epoch 46 , MSE: 0.24450 , Pearson Correlation: 0.81525 with p-value: 0.0 , Concordance Index: 0.83338\n",
      "Training at Epoch 47 iteration 0 with loss 0.33946. Total time 0.66972 hours\n",
      "Training at Epoch 47 iteration 100 with loss 0.25388. Total time 0.67361 hours\n",
      "Training at Epoch 47 iteration 200 with loss 0.38568. Total time 0.6775 hours\n",
      "Training at Epoch 47 iteration 300 with loss 0.27691. Total time 0.68111 hours\n",
      "Validation at Epoch 47 , MSE: 0.23210 , Pearson Correlation: 0.81999 with p-value: 0.0 , Concordance Index: 0.83389\n",
      "Training at Epoch 48 iteration 0 with loss 0.21078. Total time 0.68388 hours\n",
      "Training at Epoch 48 iteration 100 with loss 0.29521. Total time 0.68777 hours\n",
      "Training at Epoch 48 iteration 200 with loss 0.31297. Total time 0.69138 hours\n",
      "Training at Epoch 48 iteration 300 with loss 0.27367. Total time 0.69527 hours\n",
      "Validation at Epoch 48 , MSE: 0.23069 , Pearson Correlation: 0.82110 with p-value: 0.0 , Concordance Index: 0.83543\n",
      "Training at Epoch 49 iteration 0 with loss 0.26025. Total time 0.69805 hours\n",
      "Training at Epoch 49 iteration 100 with loss 0.27270. Total time 0.70166 hours\n",
      "Training at Epoch 49 iteration 200 with loss 0.24475. Total time 0.70555 hours\n",
      "Training at Epoch 49 iteration 300 with loss 0.29462. Total time 0.70916 hours\n",
      "Validation at Epoch 49 , MSE: 0.24847 , Pearson Correlation: 0.81134 with p-value: 0.0 , Concordance Index: 0.82997\n",
      "Training at Epoch 50 iteration 0 with loss 0.26328. Total time 0.71222 hours\n",
      "Training at Epoch 50 iteration 100 with loss 0.23072. Total time 0.71583 hours\n",
      "Training at Epoch 50 iteration 200 with loss 0.27460. Total time 0.71972 hours\n",
      "Training at Epoch 50 iteration 300 with loss 0.27585. Total time 0.72333 hours\n",
      "Validation at Epoch 50 , MSE: 0.22754 , Pearson Correlation: 0.82575 with p-value: 0.0 , Concordance Index: 0.83976\n",
      "Training at Epoch 51 iteration 0 with loss 0.25564. Total time 0.72611 hours\n",
      "Training at Epoch 51 iteration 100 with loss 0.22722. Total time 0.73 hours\n",
      "Training at Epoch 51 iteration 200 with loss 0.29612. Total time 0.73388 hours\n",
      "Training at Epoch 51 iteration 300 with loss 0.23742. Total time 0.7375 hours\n",
      "Validation at Epoch 51 , MSE: 0.22403 , Pearson Correlation: 0.82817 with p-value: 0.0 , Concordance Index: 0.83740\n",
      "Training at Epoch 52 iteration 0 with loss 0.23283. Total time 0.74027 hours\n",
      "Training at Epoch 52 iteration 100 with loss 0.23526. Total time 0.74416 hours\n",
      "Training at Epoch 52 iteration 200 with loss 0.35326. Total time 0.74777 hours\n",
      "Training at Epoch 52 iteration 300 with loss 0.26228. Total time 0.75166 hours\n",
      "Validation at Epoch 52 , MSE: 0.22376 , Pearson Correlation: 0.82674 with p-value: 0.0 , Concordance Index: 0.83988\n",
      "Training at Epoch 53 iteration 0 with loss 0.26119. Total time 0.75444 hours\n",
      "Training at Epoch 53 iteration 100 with loss 0.28855. Total time 0.75805 hours\n",
      "Training at Epoch 53 iteration 200 with loss 0.30178. Total time 0.76194 hours\n",
      "Training at Epoch 53 iteration 300 with loss 0.26463. Total time 0.76555 hours\n",
      "Validation at Epoch 53 , MSE: 0.23566 , Pearson Correlation: 0.82956 with p-value: 0.0 , Concordance Index: 0.84363\n",
      "Training at Epoch 54 iteration 0 with loss 0.22336. Total time 0.76861 hours\n",
      "Training at Epoch 54 iteration 100 with loss 0.27058. Total time 0.77222 hours\n",
      "Training at Epoch 54 iteration 200 with loss 0.26907. Total time 0.77611 hours\n",
      "Training at Epoch 54 iteration 300 with loss 0.21793. Total time 0.77972 hours\n",
      "Validation at Epoch 54 , MSE: 0.21929 , Pearson Correlation: 0.83200 with p-value: 0.0 , Concordance Index: 0.84138\n",
      "Training at Epoch 55 iteration 0 with loss 0.23014. Total time 0.7825 hours\n",
      "Training at Epoch 55 iteration 100 with loss 0.34702. Total time 0.78638 hours\n",
      "Training at Epoch 55 iteration 200 with loss 0.28493. Total time 0.79027 hours\n",
      "Training at Epoch 55 iteration 300 with loss 0.26186. Total time 0.79388 hours\n",
      "Validation at Epoch 55 , MSE: 0.21688 , Pearson Correlation: 0.83190 with p-value: 0.0 , Concordance Index: 0.84378\n",
      "Training at Epoch 56 iteration 0 with loss 0.28348. Total time 0.79666 hours\n",
      "Training at Epoch 56 iteration 100 with loss 0.21911. Total time 0.80055 hours\n",
      "Training at Epoch 56 iteration 200 with loss 0.26707. Total time 0.80416 hours\n",
      "Training at Epoch 56 iteration 300 with loss 0.22340. Total time 0.80805 hours\n",
      "Validation at Epoch 56 , MSE: 0.23215 , Pearson Correlation: 0.82940 with p-value: 0.0 , Concordance Index: 0.84450\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 57 iteration 0 with loss 0.23099. Total time 0.81083 hours\n",
      "Training at Epoch 57 iteration 100 with loss 0.18267. Total time 0.81472 hours\n",
      "Training at Epoch 57 iteration 200 with loss 0.21975. Total time 0.81833 hours\n",
      "Training at Epoch 57 iteration 300 with loss 0.25038. Total time 0.82222 hours\n",
      "Validation at Epoch 57 , MSE: 0.21427 , Pearson Correlation: 0.83487 with p-value: 0.0 , Concordance Index: 0.84453\n",
      "Training at Epoch 58 iteration 0 with loss 0.28633. Total time 0.825 hours\n",
      "Training at Epoch 58 iteration 100 with loss 0.22662. Total time 0.82861 hours\n",
      "Training at Epoch 58 iteration 200 with loss 0.19833. Total time 0.8325 hours\n",
      "Training at Epoch 58 iteration 300 with loss 0.22299. Total time 0.83611 hours\n",
      "Validation at Epoch 58 , MSE: 0.22039 , Pearson Correlation: 0.83493 with p-value: 0.0 , Concordance Index: 0.84557\n",
      "Training at Epoch 59 iteration 0 with loss 0.18470. Total time 0.83888 hours\n",
      "Training at Epoch 59 iteration 100 with loss 0.22602. Total time 0.84277 hours\n",
      "Training at Epoch 59 iteration 200 with loss 0.28174. Total time 0.84666 hours\n",
      "Training at Epoch 59 iteration 300 with loss 0.24791. Total time 0.85027 hours\n",
      "Validation at Epoch 59 , MSE: 0.21854 , Pearson Correlation: 0.83861 with p-value: 0.0 , Concordance Index: 0.84693\n",
      "Training at Epoch 60 iteration 0 with loss 0.18616. Total time 0.85305 hours\n",
      "Training at Epoch 60 iteration 100 with loss 0.19572. Total time 0.85694 hours\n",
      "Training at Epoch 60 iteration 200 with loss 0.24837. Total time 0.86055 hours\n",
      "Training at Epoch 60 iteration 300 with loss 0.23964. Total time 0.86444 hours\n",
      "Validation at Epoch 60 , MSE: 0.20507 , Pearson Correlation: 0.84215 with p-value: 0.0 , Concordance Index: 0.84664\n",
      "Training at Epoch 61 iteration 0 with loss 0.18290. Total time 0.86722 hours\n",
      "Training at Epoch 61 iteration 100 with loss 0.21378. Total time 0.87083 hours\n",
      "Training at Epoch 61 iteration 200 with loss 0.18427. Total time 0.87472 hours\n",
      "Training at Epoch 61 iteration 300 with loss 0.21532. Total time 0.87833 hours\n",
      "Validation at Epoch 61 , MSE: 0.22170 , Pearson Correlation: 0.83824 with p-value: 0.0 , Concordance Index: 0.84857\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 60 Testing MSE: 0.28979232634941643 , Pearson Correlation: 0.7843678608200545 with p-value: 0.0 , Concordance Index: 0.7940577310725345\n",
      "Training at Epoch 62 iteration 0 with loss 0.23765. Total time 0.885 hours\n",
      "Training at Epoch 62 iteration 100 with loss 0.24137. Total time 0.88888 hours\n",
      "Training at Epoch 62 iteration 200 with loss 0.22039. Total time 0.8925 hours\n",
      "Training at Epoch 62 iteration 300 with loss 0.18731. Total time 0.89611 hours\n",
      "Validation at Epoch 62 , MSE: 0.21037 , Pearson Correlation: 0.83783 with p-value: 0.0 , Concordance Index: 0.85040\n",
      "Training at Epoch 63 iteration 0 with loss 0.18429. Total time 0.89916 hours\n",
      "Training at Epoch 63 iteration 100 with loss 0.24103. Total time 0.90277 hours\n",
      "Training at Epoch 63 iteration 200 with loss 0.19475. Total time 0.90666 hours\n",
      "Training at Epoch 63 iteration 300 with loss 0.28929. Total time 0.91027 hours\n",
      "Validation at Epoch 63 , MSE: 0.21376 , Pearson Correlation: 0.83786 with p-value: 0.0 , Concordance Index: 0.84433\n",
      "Training at Epoch 64 iteration 0 with loss 0.17677. Total time 0.91305 hours\n",
      "Training at Epoch 64 iteration 100 with loss 0.18676. Total time 0.91694 hours\n",
      "Training at Epoch 64 iteration 200 with loss 0.22206. Total time 0.92083 hours\n",
      "Training at Epoch 64 iteration 300 with loss 0.24988. Total time 0.92444 hours\n",
      "Validation at Epoch 64 , MSE: 0.22365 , Pearson Correlation: 0.83816 with p-value: 0.0 , Concordance Index: 0.84630\n",
      "Training at Epoch 65 iteration 0 with loss 0.19428. Total time 0.92722 hours\n",
      "Training at Epoch 65 iteration 100 with loss 0.23839. Total time 0.93111 hours\n",
      "Training at Epoch 65 iteration 200 with loss 0.20183. Total time 0.93472 hours\n",
      "Training at Epoch 65 iteration 300 with loss 0.21927. Total time 0.93861 hours\n",
      "Validation at Epoch 65 , MSE: 0.20991 , Pearson Correlation: 0.83945 with p-value: 0.0 , Concordance Index: 0.84673\n",
      "Training at Epoch 66 iteration 0 with loss 0.27098. Total time 0.94138 hours\n",
      "Training at Epoch 66 iteration 100 with loss 0.20132. Total time 0.945 hours\n",
      "Training at Epoch 66 iteration 200 with loss 0.21682. Total time 0.94888 hours\n",
      "Training at Epoch 66 iteration 300 with loss 0.21192. Total time 0.9525 hours\n",
      "Validation at Epoch 66 , MSE: 0.22466 , Pearson Correlation: 0.83444 with p-value: 0.0 , Concordance Index: 0.84610\n",
      "Training at Epoch 67 iteration 0 with loss 0.27385. Total time 0.95555 hours\n",
      "Training at Epoch 67 iteration 100 with loss 0.21104. Total time 0.95916 hours\n",
      "Training at Epoch 67 iteration 200 with loss 0.19914. Total time 0.96305 hours\n",
      "Training at Epoch 67 iteration 300 with loss 0.19346. Total time 0.96666 hours\n",
      "Validation at Epoch 67 , MSE: 0.20446 , Pearson Correlation: 0.84306 with p-value: 0.0 , Concordance Index: 0.84978\n",
      "Training at Epoch 68 iteration 0 with loss 0.17304. Total time 0.96944 hours\n",
      "Training at Epoch 68 iteration 100 with loss 0.20625. Total time 0.97333 hours\n",
      "Training at Epoch 68 iteration 200 with loss 0.23299. Total time 0.97722 hours\n",
      "Training at Epoch 68 iteration 300 with loss 0.23808. Total time 0.98083 hours\n",
      "Validation at Epoch 68 , MSE: 0.20300 , Pearson Correlation: 0.84470 with p-value: 0.0 , Concordance Index: 0.84878\n",
      "Training at Epoch 69 iteration 0 with loss 0.16048. Total time 0.98361 hours\n",
      "Training at Epoch 69 iteration 100 with loss 0.16921. Total time 0.9875 hours\n",
      "Training at Epoch 69 iteration 200 with loss 0.22819. Total time 0.99111 hours\n",
      "Training at Epoch 69 iteration 300 with loss 0.25259. Total time 0.995 hours\n",
      "Validation at Epoch 69 , MSE: 0.20428 , Pearson Correlation: 0.84264 with p-value: 0.0 , Concordance Index: 0.85399\n",
      "Training at Epoch 70 iteration 0 with loss 0.17655. Total time 0.99777 hours\n",
      "Training at Epoch 70 iteration 100 with loss 0.16688. Total time 1.00138 hours\n",
      "Training at Epoch 70 iteration 200 with loss 0.17882. Total time 1.00527 hours\n",
      "Training at Epoch 70 iteration 300 with loss 0.23238. Total time 1.00888 hours\n",
      "Validation at Epoch 70 , MSE: 0.21570 , Pearson Correlation: 0.83754 with p-value: 0.0 , Concordance Index: 0.84481\n",
      "Training at Epoch 71 iteration 0 with loss 0.20851. Total time 1.01194 hours\n",
      "Training at Epoch 71 iteration 100 with loss 0.23075. Total time 1.01555 hours\n",
      "Training at Epoch 71 iteration 200 with loss 0.25005. Total time 1.01944 hours\n",
      "Training at Epoch 71 iteration 300 with loss 0.21321. Total time 1.02305 hours\n",
      "Validation at Epoch 71 , MSE: 0.20508 , Pearson Correlation: 0.84247 with p-value: 0.0 , Concordance Index: 0.85281\n",
      "Training at Epoch 72 iteration 0 with loss 0.23802. Total time 1.02583 hours\n",
      "Training at Epoch 72 iteration 100 with loss 0.17203. Total time 1.02972 hours\n",
      "Training at Epoch 72 iteration 200 with loss 0.16251. Total time 1.03333 hours\n",
      "Training at Epoch 72 iteration 300 with loss 0.19220. Total time 1.03722 hours\n",
      "Validation at Epoch 72 , MSE: 0.20544 , Pearson Correlation: 0.84432 with p-value: 0.0 , Concordance Index: 0.85128\n",
      "Training at Epoch 73 iteration 0 with loss 0.21458. Total time 1.04 hours\n",
      "Training at Epoch 73 iteration 100 with loss 0.18219. Total time 1.04388 hours\n",
      "Training at Epoch 73 iteration 200 with loss 0.22209. Total time 1.0475 hours\n",
      "Training at Epoch 73 iteration 300 with loss 0.25741. Total time 1.05111 hours\n",
      "Validation at Epoch 73 , MSE: 0.19711 , Pearson Correlation: 0.84892 with p-value: 0.0 , Concordance Index: 0.85515\n",
      "Training at Epoch 74 iteration 0 with loss 0.23163. Total time 1.05416 hours\n",
      "Training at Epoch 74 iteration 100 with loss 0.20038. Total time 1.05777 hours\n",
      "Training at Epoch 74 iteration 200 with loss 0.18457. Total time 1.06166 hours\n",
      "Training at Epoch 74 iteration 300 with loss 0.20598. Total time 1.06527 hours\n",
      "Validation at Epoch 74 , MSE: 0.20023 , Pearson Correlation: 0.84600 with p-value: 0.0 , Concordance Index: 0.85490\n",
      "Training at Epoch 75 iteration 0 with loss 0.23073. Total time 1.06805 hours\n",
      "Training at Epoch 75 iteration 100 with loss 0.21978. Total time 1.07194 hours\n",
      "Training at Epoch 75 iteration 200 with loss 0.20995. Total time 1.07555 hours\n",
      "Training at Epoch 75 iteration 300 with loss 0.20202. Total time 1.07944 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Validation at Epoch 75 , MSE: 0.19951 , Pearson Correlation: 0.84707 with p-value: 0.0 , Concordance Index: 0.85676\n",
      "Training at Epoch 76 iteration 0 with loss 0.19009. Total time 1.08222 hours\n",
      "Training at Epoch 76 iteration 100 with loss 0.19675. Total time 1.08611 hours\n",
      "Training at Epoch 76 iteration 200 with loss 0.19904. Total time 1.08972 hours\n",
      "Training at Epoch 76 iteration 300 with loss 0.21262. Total time 1.09333 hours\n",
      "Validation at Epoch 76 , MSE: 0.22384 , Pearson Correlation: 0.84319 with p-value: 0.0 , Concordance Index: 0.85404\n",
      "Training at Epoch 77 iteration 0 with loss 0.28740. Total time 1.09638 hours\n",
      "Training at Epoch 77 iteration 100 with loss 0.21236. Total time 1.1 hours\n",
      "Training at Epoch 77 iteration 200 with loss 0.18322. Total time 1.10388 hours\n",
      "Training at Epoch 77 iteration 300 with loss 0.19991. Total time 1.1075 hours\n",
      "Validation at Epoch 77 , MSE: 0.20588 , Pearson Correlation: 0.84388 with p-value: 0.0 , Concordance Index: 0.85299\n",
      "Training at Epoch 78 iteration 0 with loss 0.19551. Total time 1.11027 hours\n",
      "Training at Epoch 78 iteration 100 with loss 0.18252. Total time 1.11416 hours\n",
      "Training at Epoch 78 iteration 200 with loss 0.25836. Total time 1.11805 hours\n",
      "Training at Epoch 78 iteration 300 with loss 0.19175. Total time 1.12166 hours\n",
      "Validation at Epoch 78 , MSE: 0.19374 , Pearson Correlation: 0.85163 with p-value: 0.0 , Concordance Index: 0.85791\n",
      "Training at Epoch 79 iteration 0 with loss 0.18401. Total time 1.12444 hours\n",
      "Training at Epoch 79 iteration 100 with loss 0.18045. Total time 1.12833 hours\n",
      "Training at Epoch 79 iteration 200 with loss 0.14475. Total time 1.13194 hours\n",
      "Training at Epoch 79 iteration 300 with loss 0.23359. Total time 1.13583 hours\n",
      "Validation at Epoch 79 , MSE: 0.19484 , Pearson Correlation: 0.85097 with p-value: 0.0 , Concordance Index: 0.85814\n",
      "Training at Epoch 80 iteration 0 with loss 0.19971. Total time 1.13861 hours\n",
      "Training at Epoch 80 iteration 100 with loss 0.19242. Total time 1.1425 hours\n",
      "Training at Epoch 80 iteration 200 with loss 0.21316. Total time 1.14611 hours\n",
      "Training at Epoch 80 iteration 300 with loss 0.19092. Total time 1.15 hours\n",
      "Validation at Epoch 80 , MSE: 0.19701 , Pearson Correlation: 0.84922 with p-value: 0.0 , Concordance Index: 0.85506\n",
      "Training at Epoch 81 iteration 0 with loss 0.13744. Total time 1.15277 hours\n",
      "Training at Epoch 81 iteration 100 with loss 0.17366. Total time 1.15666 hours\n",
      "Training at Epoch 81 iteration 200 with loss 0.16671. Total time 1.16055 hours\n",
      "Training at Epoch 81 iteration 300 with loss 0.16689. Total time 1.16416 hours\n",
      "Validation at Epoch 81 , MSE: 0.20139 , Pearson Correlation: 0.85003 with p-value: 0.0 , Concordance Index: 0.85787\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 80 Testing MSE: 0.2590371941582941 , Pearson Correlation: 0.802348629530045 with p-value: 0.0 , Concordance Index: 0.8003783153484844\n",
      "Training at Epoch 82 iteration 0 with loss 0.13245. Total time 1.17083 hours\n",
      "Training at Epoch 82 iteration 100 with loss 0.18275. Total time 1.17444 hours\n",
      "Training at Epoch 82 iteration 200 with loss 0.17862. Total time 1.17833 hours\n",
      "Training at Epoch 82 iteration 300 with loss 0.22610. Total time 1.18194 hours\n",
      "Validation at Epoch 82 , MSE: 0.19616 , Pearson Correlation: 0.85019 with p-value: 0.0 , Concordance Index: 0.85576\n",
      "Training at Epoch 83 iteration 0 with loss 0.12582. Total time 1.18472 hours\n",
      "Training at Epoch 83 iteration 100 with loss 0.21129. Total time 1.18861 hours\n",
      "Training at Epoch 83 iteration 200 with loss 0.14526. Total time 1.19222 hours\n",
      "Training at Epoch 83 iteration 300 with loss 0.24704. Total time 1.19611 hours\n",
      "Validation at Epoch 83 , MSE: 0.20049 , Pearson Correlation: 0.85189 with p-value: 0.0 , Concordance Index: 0.85848\n",
      "Training at Epoch 84 iteration 0 with loss 0.13526. Total time 1.19888 hours\n",
      "Training at Epoch 84 iteration 100 with loss 0.17640. Total time 1.20277 hours\n",
      "Training at Epoch 84 iteration 200 with loss 0.17418. Total time 1.20638 hours\n",
      "Training at Epoch 84 iteration 300 with loss 0.22704. Total time 1.21027 hours\n",
      "Validation at Epoch 84 , MSE: 0.20372 , Pearson Correlation: 0.84756 with p-value: 0.0 , Concordance Index: 0.85496\n",
      "Training at Epoch 85 iteration 0 with loss 0.19034. Total time 1.21305 hours\n",
      "Training at Epoch 85 iteration 100 with loss 0.15364. Total time 1.21694 hours\n",
      "Training at Epoch 85 iteration 200 with loss 0.16963. Total time 1.22055 hours\n",
      "Training at Epoch 85 iteration 300 with loss 0.18066. Total time 1.22416 hours\n",
      "Validation at Epoch 85 , MSE: 0.19874 , Pearson Correlation: 0.84756 with p-value: 0.0 , Concordance Index: 0.85369\n",
      "Training at Epoch 86 iteration 0 with loss 0.17878. Total time 1.22722 hours\n",
      "Training at Epoch 86 iteration 100 with loss 0.24123. Total time 1.23083 hours\n",
      "Training at Epoch 86 iteration 200 with loss 0.19375. Total time 1.23472 hours\n",
      "Training at Epoch 86 iteration 300 with loss 0.22464. Total time 1.23833 hours\n",
      "Validation at Epoch 86 , MSE: 0.19550 , Pearson Correlation: 0.85109 with p-value: 0.0 , Concordance Index: 0.86032\n",
      "Training at Epoch 87 iteration 0 with loss 0.14493. Total time 1.24111 hours\n",
      "Training at Epoch 87 iteration 100 with loss 0.21993. Total time 1.245 hours\n",
      "Training at Epoch 87 iteration 200 with loss 0.21645. Total time 1.24888 hours\n",
      "Training at Epoch 87 iteration 300 with loss 0.13400. Total time 1.2525 hours\n",
      "Validation at Epoch 87 , MSE: 0.19527 , Pearson Correlation: 0.85154 with p-value: 0.0 , Concordance Index: 0.86030\n",
      "Training at Epoch 88 iteration 0 with loss 0.16561. Total time 1.25527 hours\n",
      "Training at Epoch 88 iteration 100 with loss 0.16100. Total time 1.25916 hours\n",
      "Training at Epoch 88 iteration 200 with loss 0.16506. Total time 1.26277 hours\n",
      "Training at Epoch 88 iteration 300 with loss 0.19117. Total time 1.26666 hours\n",
      "Validation at Epoch 88 , MSE: 0.19929 , Pearson Correlation: 0.85051 with p-value: 0.0 , Concordance Index: 0.86063\n",
      "Training at Epoch 89 iteration 0 with loss 0.14814. Total time 1.26944 hours\n",
      "Training at Epoch 89 iteration 100 with loss 0.15403. Total time 1.27305 hours\n",
      "Training at Epoch 89 iteration 200 with loss 0.12720. Total time 1.27694 hours\n",
      "Training at Epoch 89 iteration 300 with loss 0.19186. Total time 1.28055 hours\n",
      "Validation at Epoch 89 , MSE: 0.19822 , Pearson Correlation: 0.85054 with p-value: 0.0 , Concordance Index: 0.85696\n",
      "Training at Epoch 90 iteration 0 with loss 0.14903. Total time 1.28361 hours\n",
      "Training at Epoch 90 iteration 100 with loss 0.23239. Total time 1.28722 hours\n",
      "Training at Epoch 90 iteration 200 with loss 0.17516. Total time 1.29111 hours\n",
      "Training at Epoch 90 iteration 300 with loss 0.14857. Total time 1.29472 hours\n",
      "Validation at Epoch 90 , MSE: 0.19726 , Pearson Correlation: 0.84940 with p-value: 0.0 , Concordance Index: 0.85551\n",
      "Training at Epoch 91 iteration 0 with loss 0.19506. Total time 1.2975 hours\n",
      "Training at Epoch 91 iteration 100 with loss 0.19922. Total time 1.30138 hours\n",
      "Training at Epoch 91 iteration 200 with loss 0.14769. Total time 1.305 hours\n",
      "Training at Epoch 91 iteration 300 with loss 0.11999. Total time 1.30888 hours\n",
      "Validation at Epoch 91 , MSE: 0.19650 , Pearson Correlation: 0.85077 with p-value: 0.0 , Concordance Index: 0.86301\n",
      "Training at Epoch 92 iteration 0 with loss 0.17945. Total time 1.31166 hours\n",
      "Training at Epoch 92 iteration 100 with loss 0.23391. Total time 1.31527 hours\n",
      "Training at Epoch 92 iteration 200 with loss 0.17218. Total time 1.31916 hours\n",
      "Training at Epoch 92 iteration 300 with loss 0.13517. Total time 1.32277 hours\n",
      "Validation at Epoch 92 , MSE: 0.19423 , Pearson Correlation: 0.85351 with p-value: 0.0 , Concordance Index: 0.86081\n",
      "Training at Epoch 93 iteration 0 with loss 0.15827. Total time 1.32555 hours\n",
      "Training at Epoch 93 iteration 100 with loss 0.25460. Total time 1.32944 hours\n",
      "Training at Epoch 93 iteration 200 with loss 0.16184. Total time 1.33333 hours\n",
      "Training at Epoch 93 iteration 300 with loss 0.13655. Total time 1.33694 hours\n",
      "Validation at Epoch 93 , MSE: 0.19098 , Pearson Correlation: 0.85398 with p-value: 0.0 , Concordance Index: 0.86215\n",
      "Training at Epoch 94 iteration 0 with loss 0.17843. Total time 1.33972 hours\n",
      "Training at Epoch 94 iteration 100 with loss 0.14953. Total time 1.34361 hours\n",
      "Training at Epoch 94 iteration 200 with loss 0.17205. Total time 1.34722 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 94 iteration 300 with loss 0.12843. Total time 1.35083 hours\n",
      "Validation at Epoch 94 , MSE: 0.20358 , Pearson Correlation: 0.84794 with p-value: 0.0 , Concordance Index: 0.85820\n",
      "Training at Epoch 95 iteration 0 with loss 0.13680. Total time 1.35388 hours\n",
      "Training at Epoch 95 iteration 100 with loss 0.16331. Total time 1.3575 hours\n",
      "Training at Epoch 95 iteration 200 with loss 0.15274. Total time 1.36138 hours\n",
      "Training at Epoch 95 iteration 300 with loss 0.15947. Total time 1.365 hours\n",
      "Validation at Epoch 95 , MSE: 0.19452 , Pearson Correlation: 0.85365 with p-value: 0.0 , Concordance Index: 0.86200\n",
      "Training at Epoch 96 iteration 0 with loss 0.11045. Total time 1.36777 hours\n",
      "Training at Epoch 96 iteration 100 with loss 0.15891. Total time 1.37166 hours\n",
      "Training at Epoch 96 iteration 200 with loss 0.16392. Total time 1.37527 hours\n",
      "Training at Epoch 96 iteration 300 with loss 0.14076. Total time 1.37916 hours\n",
      "Validation at Epoch 96 , MSE: 0.21021 , Pearson Correlation: 0.85235 with p-value: 0.0 , Concordance Index: 0.86186\n",
      "Training at Epoch 97 iteration 0 with loss 0.12361. Total time 1.38194 hours\n",
      "Training at Epoch 97 iteration 100 with loss 0.18652. Total time 1.38583 hours\n",
      "Training at Epoch 97 iteration 200 with loss 0.16135. Total time 1.38944 hours\n",
      "Training at Epoch 97 iteration 300 with loss 0.14170. Total time 1.39305 hours\n",
      "Validation at Epoch 97 , MSE: 0.19373 , Pearson Correlation: 0.85244 with p-value: 0.0 , Concordance Index: 0.86157\n",
      "Training at Epoch 98 iteration 0 with loss 0.13755. Total time 1.39611 hours\n",
      "Training at Epoch 98 iteration 100 with loss 0.13985. Total time 1.39972 hours\n",
      "Training at Epoch 98 iteration 200 with loss 0.12898. Total time 1.40361 hours\n",
      "Training at Epoch 98 iteration 300 with loss 0.15331. Total time 1.40722 hours\n",
      "Validation at Epoch 98 , MSE: 0.19539 , Pearson Correlation: 0.85159 with p-value: 0.0 , Concordance Index: 0.86403\n",
      "Training at Epoch 99 iteration 0 with loss 0.22187. Total time 1.41 hours\n",
      "Training at Epoch 99 iteration 100 with loss 0.12391. Total time 1.41388 hours\n",
      "Training at Epoch 99 iteration 200 with loss 0.16172. Total time 1.4175 hours\n",
      "Training at Epoch 99 iteration 300 with loss 0.18201. Total time 1.42138 hours\n",
      "Validation at Epoch 99 , MSE: 0.19368 , Pearson Correlation: 0.85300 with p-value: 0.0 , Concordance Index: 0.86029\n",
      "Training at Epoch 100 iteration 0 with loss 0.12392. Total time 1.42416 hours\n",
      "Training at Epoch 100 iteration 100 with loss 0.13175. Total time 1.42777 hours\n",
      "Training at Epoch 100 iteration 200 with loss 0.17422. Total time 1.43166 hours\n",
      "Training at Epoch 100 iteration 300 with loss 0.20703. Total time 1.43527 hours\n",
      "Validation at Epoch 100 , MSE: 0.19787 , Pearson Correlation: 0.85234 with p-value: 0.0 , Concordance Index: 0.86269\n",
      "--- Go for Testing ---\n",
      "Testing MSE: 0.2536419266195472 , Pearson Correlation: 0.809973477733459 with p-value: 0.0 , Concordance Index: 0.808489202055724\n",
      "--- Training Finished ---\n"
     ]
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYoAAAELCAYAAADHksFtAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjMsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+AADFEAAAeHUlEQVR4nO3deZxcZZ3v8c83C2CI3CQkOBlC0oiMCoxXsYeLy8UlcVjGMY4jXrSRsHh7ELyCy1U0V8UZgjo6Kt5xwChglFZERGUElRhFRgbQDktEEROBhEggTVhEosSE3/zxPEVXV1edVCe1der7fr3qVec851SdX1U6/evzrIoIzMzMapnQ7gDMzKyzOVGYmVkhJwozMyvkRGFmZoWcKMzMrNCkdgfQaDNnzoyenp52h2FmNq6sXLnywYiYVe3YLpcoenp6GBwcbHcYZmbjiqS1tY656snMzAq1NFFIukjSRkm3Vzn2bkkhaWbel6TPSFojaZWkQ1sZq5mZJa2+o/gicFRloaT9gFcB68qKjwYOzI9+4PwWxGdmZhVamigi4jrgoSqHPgW8ByifT2Qh8KVIbgSmSZrdgjDNzKxM29soJL0G+G1E3FZxaF/g3rL99bms2nv0SxqUNDg0NNSkSM3MulNbE4WkKcBi4IPVDlcpqzqDYUQsjYjeiOidNatq765CAwPQ0wMTJqTngYExv4WZ2S6r3d1jDwD2B26TBDAHuFnSYaQ7iP3Kzp0D3NfoAAYGoL8fNm9O+2vXpn2Avr5GX83MbPxp6x1FRPw8IvaJiJ6I6CElh0Mj4n7gSuCE3PvpcODRiNjQ6BgWLx5OEiWbN6dyMzNrfffYrwI3AM+WtF7SKQWnXw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1WUx9OTjo6qe8kI2N0j6Q37fb0l6dsU510r6iaQF+fqbJd0uqWFTslv3caKwbrQBeF3e/gipmudFwFUAkk4lTVT3S+D1wD8AhwA/lvT0ivd6BfBO4MOkebhW5fJ9gU+R1iM4kTQp33WSnpePXwWck7ePLYthQ7WAJR2VX/N74H8Bb80x/URS5fTTBwDnAZ/Mn3MDcLmkZxV+K2Y1uOrJuk5EPCHplrx7V3k1T57y+mPAxRFxcln5TaR5d04BPl32dtOBF0bE/RXXeEvZaycC3yPN13UKcEZEDEn6TT7l1ohYs52wzyFNEnd05PUOJN2QY3oXKVmVzASOiIjV+bybScniDcC527mO2Si+ozAb6UXAXsCApEmlB6lt41ekJVPL3ViZJABy1c+PJG0CtpImG/wL4NmV526PpD1Jje5fi+FFcYi0Itr1wMsqXrK6lCTyeRtJdzRzMdsBvqMwG6m0EtwPahx/uGJ/VFVR7nJ7NfB90h3EBmAbqRfTHjsQ03TSrK/VqqXuB+ZVlFVb0vWJHby2mROFWYVN+flEUlVRpccq9qtNv/z3pLuI10XEn0qFeUnPR3Ygpofzdf6syrE/Yzhms6ZworBu9UR+flpF+X+SksGzImLZDr73FNIdxFNJRNIrSVU/d5edVyuGESLicUkrgWMlnR0R2/J7zgNeDPz/HYzTrC5OFNatHiD9JX6cpFXA48DdEbFJ0v8FPitpFmlFt0dJvZheBlwbEV/Zznt/DzgT+KKki0ltEx8Afltx3i/z8+mSlpHaMVbVGIfxAVKvp+9I+jdgKqmn1aMMrylt1hRuzLauFGk95reQ6v9/QFru82/zsc8BryE1PH+ZlCw+TPrD6tY63vv7wNuBlwDfIa0cdwJpdbPy824Dzs7X/UmO4c9rvOf3SGM0pgGXkZbZvAN4aeR11c2axSvcmZlZId9RmJlZIScKMzMr5ERhZmaFnCjMzKyQE4WZmRVyojAzs0JOFGZmVsiJwszMCv0XR2vPO5jgnKwAAAAASUVORK5CYII=\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "drug_encoding = 'Daylight'\n",
    "target_encoding = 'AAC'\n",
    "train, val, test = data_process(X_drug, X_target, y, \n",
    "                                drug_encoding, target_encoding, \n",
    "                                split_method='random',frac=[0.7,0.1,0.2], random_seed = 1)\n",
    "\n",
    "config = generate_config(drug_encoding = drug_encoding, \n",
    "                         target_encoding = target_encoding, \n",
    "                         cls_hidden_dims = [1024,1024,512], \n",
    "                         train_epoch = 100, \n",
    "                         LR = 0.001, \n",
    "                         batch_size = 256\n",
    "                        )\n",
    "model = models.model_initialize(**config)\n",
    "model.train(train, val, test)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "in total: 118254 drug-target pairs\n",
      "encoding drug...\n",
      "unique drugs: 2068\n",
      "drug encoding finished...\n",
      "encoding protein...\n",
      "unique target sequence: 229\n",
      "-- Encoding AAC takes time. Time Reference: 24s for ~100 sequences in a CPU. Calculate your time by the unique target sequence #, instead of the entire dataset.\n",
      "protein encoding finished...\n",
      "splitting dataset...\n",
      "Done.\n",
      "Let's use 1 GPU!\n",
      "--- Data Preparation ---\n",
      "--- Go for Training ---\n",
      "Training at Epoch 1 iteration 0 with loss 137.988. Total time 0.0 hours\n",
      "Training at Epoch 1 iteration 100 with loss 0.83744. Total time 0.00388 hours\n",
      "Training at Epoch 1 iteration 200 with loss 0.76363. Total time 0.00777 hours\n",
      "Training at Epoch 1 iteration 300 with loss 0.79267. Total time 0.01138 hours\n",
      "Validation at Epoch 1 , MSE: 0.53565 , Pearson Correlation: 0.52481 with p-value: 0.0 , Concordance Index: 0.70933\n",
      "Training at Epoch 2 iteration 0 with loss 0.75546. Total time 0.01416 hours\n",
      "Training at Epoch 2 iteration 100 with loss 0.65021. Total time 0.01805 hours\n",
      "Training at Epoch 2 iteration 200 with loss 0.85358. Total time 0.02166 hours\n",
      "Training at Epoch 2 iteration 300 with loss 0.56635. Total time 0.02555 hours\n",
      "Validation at Epoch 2 , MSE: 0.56707 , Pearson Correlation: 0.59747 with p-value: 0.0 , Concordance Index: 0.73445\n",
      "Training at Epoch 3 iteration 0 with loss 0.56691. Total time 0.02833 hours\n",
      "Training at Epoch 3 iteration 100 with loss 1.62645. Total time 0.03194 hours\n",
      "Training at Epoch 3 iteration 200 with loss 0.60559. Total time 0.03583 hours\n",
      "Training at Epoch 3 iteration 300 with loss 0.56818. Total time 0.03944 hours\n",
      "Validation at Epoch 3 , MSE: 0.45395 , Pearson Correlation: 0.62706 with p-value: 0.0 , Concordance Index: 0.74832\n",
      "Training at Epoch 4 iteration 0 with loss 0.42310. Total time 0.04222 hours\n",
      "Training at Epoch 4 iteration 100 with loss 0.46698. Total time 0.04611 hours\n",
      "Training at Epoch 4 iteration 200 with loss 0.48802. Total time 0.04972 hours\n",
      "Training at Epoch 4 iteration 300 with loss 0.71108. Total time 0.05361 hours\n",
      "Validation at Epoch 4 , MSE: 0.43154 , Pearson Correlation: 0.64266 with p-value: 0.0 , Concordance Index: 0.75190\n",
      "Training at Epoch 5 iteration 0 with loss 0.59132. Total time 0.05638 hours\n",
      "Training at Epoch 5 iteration 100 with loss 0.49391. Total time 0.06 hours\n",
      "Training at Epoch 5 iteration 200 with loss 0.63208. Total time 0.06388 hours\n",
      "Training at Epoch 5 iteration 300 with loss 0.67370. Total time 0.0675 hours\n",
      "Validation at Epoch 5 , MSE: 0.67638 , Pearson Correlation: 0.65116 with p-value: 0.0 , Concordance Index: 0.76005\n",
      "Training at Epoch 6 iteration 0 with loss 0.86530. Total time 0.07027 hours\n",
      "Training at Epoch 6 iteration 100 with loss 0.59563. Total time 0.07416 hours\n",
      "Training at Epoch 6 iteration 200 with loss 0.49269. Total time 0.07777 hours\n",
      "Training at Epoch 6 iteration 300 with loss 0.63385. Total time 0.08166 hours\n",
      "Validation at Epoch 6 , MSE: 0.44093 , Pearson Correlation: 0.65738 with p-value: 0.0 , Concordance Index: 0.76576\n",
      "Training at Epoch 7 iteration 0 with loss 0.43252. Total time 0.08444 hours\n",
      "Training at Epoch 7 iteration 100 with loss 0.51884. Total time 0.08805 hours\n",
      "Training at Epoch 7 iteration 200 with loss 0.53893. Total time 0.09194 hours\n",
      "Training at Epoch 7 iteration 300 with loss 0.53592. Total time 0.09555 hours\n",
      "Validation at Epoch 7 , MSE: 0.49221 , Pearson Correlation: 0.66256 with p-value: 0.0 , Concordance Index: 0.76035\n",
      "Training at Epoch 8 iteration 0 with loss 0.58595. Total time 0.09861 hours\n",
      "Training at Epoch 8 iteration 100 with loss 0.47319. Total time 0.10222 hours\n",
      "Training at Epoch 8 iteration 200 with loss 0.57423. Total time 0.10611 hours\n",
      "Training at Epoch 8 iteration 300 with loss 0.57339. Total time 0.10972 hours\n",
      "Validation at Epoch 8 , MSE: 0.40959 , Pearson Correlation: 0.67651 with p-value: 0.0 , Concordance Index: 0.77648\n",
      "Training at Epoch 9 iteration 0 with loss 0.55649. Total time 0.1125 hours\n",
      "Training at Epoch 9 iteration 100 with loss 0.46208. Total time 0.11638 hours\n",
      "Training at Epoch 9 iteration 200 with loss 0.49548. Total time 0.12 hours\n",
      "Training at Epoch 9 iteration 300 with loss 0.55012. Total time 0.12388 hours\n",
      "Validation at Epoch 9 , MSE: 0.41927 , Pearson Correlation: 0.69891 with p-value: 0.0 , Concordance Index: 0.77684\n",
      "Training at Epoch 10 iteration 0 with loss 0.45130. Total time 0.12666 hours\n",
      "Training at Epoch 10 iteration 100 with loss 0.64610. Total time 0.13027 hours\n",
      "Training at Epoch 10 iteration 200 with loss 0.56055. Total time 0.13416 hours\n",
      "Training at Epoch 10 iteration 300 with loss 0.49867. Total time 0.13777 hours\n",
      "Validation at Epoch 10 , MSE: 0.66690 , Pearson Correlation: 0.72494 with p-value: 0.0 , Concordance Index: 0.78342\n",
      "Training at Epoch 11 iteration 0 with loss 0.70814. Total time 0.14055 hours\n",
      "Training at Epoch 11 iteration 100 with loss 0.41749. Total time 0.14444 hours\n",
      "Training at Epoch 11 iteration 200 with loss 0.46631. Total time 0.14833 hours\n",
      "Training at Epoch 11 iteration 300 with loss 0.40746. Total time 0.15194 hours\n",
      "Validation at Epoch 11 , MSE: 0.33564 , Pearson Correlation: 0.73773 with p-value: 0.0 , Concordance Index: 0.79226\n",
      "Training at Epoch 12 iteration 0 with loss 0.40891. Total time 0.15472 hours\n",
      "Training at Epoch 12 iteration 100 with loss 0.50295. Total time 0.15861 hours\n",
      "Training at Epoch 12 iteration 200 with loss 0.44804. Total time 0.16222 hours\n",
      "Training at Epoch 12 iteration 300 with loss 0.46820. Total time 0.16583 hours\n",
      "Validation at Epoch 12 , MSE: 0.34046 , Pearson Correlation: 0.74218 with p-value: 0.0 , Concordance Index: 0.79387\n",
      "Training at Epoch 13 iteration 0 with loss 0.36611. Total time 0.16888 hours\n",
      "Training at Epoch 13 iteration 100 with loss 0.38224. Total time 0.1725 hours\n",
      "Training at Epoch 13 iteration 200 with loss 0.41785. Total time 0.17638 hours\n",
      "Training at Epoch 13 iteration 300 with loss 0.66945. Total time 0.18 hours\n",
      "Validation at Epoch 13 , MSE: 0.39826 , Pearson Correlation: 0.73266 with p-value: 0.0 , Concordance Index: 0.78521\n",
      "Training at Epoch 14 iteration 0 with loss 0.45459. Total time 0.18277 hours\n",
      "Training at Epoch 14 iteration 100 with loss 0.41502. Total time 0.18666 hours\n",
      "Training at Epoch 14 iteration 200 with loss 0.37437. Total time 0.19027 hours\n",
      "Training at Epoch 14 iteration 300 with loss 0.40902. Total time 0.19416 hours\n",
      "Validation at Epoch 14 , MSE: 0.48246 , Pearson Correlation: 0.74862 with p-value: 0.0 , Concordance Index: 0.79222\n",
      "Training at Epoch 15 iteration 0 with loss 0.51016. Total time 0.19694 hours\n",
      "Training at Epoch 15 iteration 100 with loss 0.44230. Total time 0.20083 hours\n",
      "Training at Epoch 15 iteration 200 with loss 0.51584. Total time 0.20444 hours\n",
      "Training at Epoch 15 iteration 300 with loss 0.49250. Total time 0.20833 hours\n",
      "Validation at Epoch 15 , MSE: 0.48709 , Pearson Correlation: 0.75205 with p-value: 0.0 , Concordance Index: 0.79961\n",
      "Training at Epoch 16 iteration 0 with loss 0.57366. Total time 0.21111 hours\n",
      "Training at Epoch 16 iteration 100 with loss 0.37898. Total time 0.21472 hours\n",
      "Training at Epoch 16 iteration 200 with loss 0.40747. Total time 0.21861 hours\n",
      "Training at Epoch 16 iteration 300 with loss 0.49508. Total time 0.22222 hours\n",
      "Validation at Epoch 16 , MSE: 0.31964 , Pearson Correlation: 0.75587 with p-value: 0.0 , Concordance Index: 0.80379\n",
      "Training at Epoch 17 iteration 0 with loss 0.42904. Total time 0.225 hours\n",
      "Training at Epoch 17 iteration 100 with loss 0.33211. Total time 0.22888 hours\n",
      "Training at Epoch 17 iteration 200 with loss 0.43753. Total time 0.2325 hours\n",
      "Training at Epoch 17 iteration 300 with loss 0.46487. Total time 0.23638 hours\n",
      "Validation at Epoch 17 , MSE: 0.30721 , Pearson Correlation: 0.75797 with p-value: 0.0 , Concordance Index: 0.80545\n",
      "Training at Epoch 18 iteration 0 with loss 0.31606. Total time 0.23916 hours\n",
      "Training at Epoch 18 iteration 100 with loss 0.40637. Total time 0.24277 hours\n",
      "Training at Epoch 18 iteration 200 with loss 0.34208. Total time 0.24666 hours\n",
      "Training at Epoch 18 iteration 300 with loss 0.42376. Total time 0.25027 hours\n",
      "Validation at Epoch 18 , MSE: 0.42801 , Pearson Correlation: 0.76026 with p-value: 0.0 , Concordance Index: 0.80303\n",
      "Training at Epoch 19 iteration 0 with loss 0.46853. Total time 0.25305 hours\n",
      "Training at Epoch 19 iteration 100 with loss 0.30990. Total time 0.25694 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 19 iteration 200 with loss 0.37695. Total time 0.26055 hours\n",
      "Training at Epoch 19 iteration 300 with loss 0.34921. Total time 0.26444 hours\n",
      "Validation at Epoch 19 , MSE: 0.30534 , Pearson Correlation: 0.76511 with p-value: 0.0 , Concordance Index: 0.80390\n",
      "Training at Epoch 20 iteration 0 with loss 0.34154. Total time 0.26722 hours\n",
      "Training at Epoch 20 iteration 100 with loss 0.34456. Total time 0.27083 hours\n",
      "Training at Epoch 20 iteration 200 with loss 0.43161. Total time 0.27472 hours\n",
      "Training at Epoch 20 iteration 300 with loss 0.27264. Total time 0.27833 hours\n",
      "Validation at Epoch 20 , MSE: 0.36261 , Pearson Correlation: 0.76470 with p-value: 0.0 , Concordance Index: 0.80240\n",
      "Training at Epoch 21 iteration 0 with loss 0.35921. Total time 0.28111 hours\n",
      "Training at Epoch 21 iteration 100 with loss 0.29641. Total time 0.285 hours\n",
      "Training at Epoch 21 iteration 200 with loss 0.29947. Total time 0.28861 hours\n",
      "Training at Epoch 21 iteration 300 with loss 0.32937. Total time 0.2925 hours\n",
      "Validation at Epoch 21 , MSE: 0.28687 , Pearson Correlation: 0.77664 with p-value: 0.0 , Concordance Index: 0.81109\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 20 Testing MSE: 0.3629323414170959 , Pearson Correlation: 0.7049242521807972 with p-value: 0.0 , Concordance Index: 0.7461568173568535\n",
      "Training at Epoch 22 iteration 0 with loss 0.36186. Total time 0.29888 hours\n",
      "Training at Epoch 22 iteration 100 with loss 0.32539. Total time 0.30277 hours\n",
      "Training at Epoch 22 iteration 200 with loss 0.31441. Total time 0.30638 hours\n",
      "Training at Epoch 22 iteration 300 with loss 0.34285. Total time 0.31027 hours\n",
      "Validation at Epoch 22 , MSE: 0.30370 , Pearson Correlation: 0.77399 with p-value: 0.0 , Concordance Index: 0.81341\n",
      "Training at Epoch 23 iteration 0 with loss 0.32946. Total time 0.31305 hours\n",
      "Training at Epoch 23 iteration 100 with loss 0.33789. Total time 0.31666 hours\n",
      "Training at Epoch 23 iteration 200 with loss 0.31730. Total time 0.32055 hours\n",
      "Training at Epoch 23 iteration 300 with loss 0.33051. Total time 0.32416 hours\n",
      "Validation at Epoch 23 , MSE: 0.27641 , Pearson Correlation: 0.78502 with p-value: 0.0 , Concordance Index: 0.81482\n",
      "Training at Epoch 24 iteration 0 with loss 0.30937. Total time 0.32722 hours\n",
      "Training at Epoch 24 iteration 100 with loss 0.33035. Total time 0.33083 hours\n",
      "Training at Epoch 24 iteration 200 with loss 0.32464. Total time 0.33472 hours\n",
      "Training at Epoch 24 iteration 300 with loss 0.35703. Total time 0.33833 hours\n",
      "Validation at Epoch 24 , MSE: 0.28253 , Pearson Correlation: 0.78037 with p-value: 0.0 , Concordance Index: 0.81162\n",
      "Training at Epoch 25 iteration 0 with loss 0.30234. Total time 0.34111 hours\n",
      "Training at Epoch 25 iteration 100 with loss 0.30940. Total time 0.345 hours\n",
      "Training at Epoch 25 iteration 200 with loss 0.32116. Total time 0.34861 hours\n",
      "Training at Epoch 25 iteration 300 with loss 0.27829. Total time 0.3525 hours\n",
      "Validation at Epoch 25 , MSE: 0.29122 , Pearson Correlation: 0.78217 with p-value: 0.0 , Concordance Index: 0.81101\n",
      "Training at Epoch 26 iteration 0 with loss 0.23201. Total time 0.35527 hours\n",
      "Training at Epoch 26 iteration 100 with loss 0.27230. Total time 0.35888 hours\n",
      "Training at Epoch 26 iteration 200 with loss 0.27205. Total time 0.36277 hours\n",
      "Training at Epoch 26 iteration 300 with loss 0.24121. Total time 0.36638 hours\n",
      "Validation at Epoch 26 , MSE: 0.28599 , Pearson Correlation: 0.78056 with p-value: 0.0 , Concordance Index: 0.81622\n",
      "Training at Epoch 27 iteration 0 with loss 0.28498. Total time 0.36916 hours\n",
      "Training at Epoch 27 iteration 100 with loss 0.31963. Total time 0.37305 hours\n",
      "Training at Epoch 27 iteration 200 with loss 0.27355. Total time 0.37666 hours\n",
      "Training at Epoch 27 iteration 300 with loss 0.25936. Total time 0.38055 hours\n",
      "Validation at Epoch 27 , MSE: 0.27125 , Pearson Correlation: 0.79226 with p-value: 0.0 , Concordance Index: 0.82277\n",
      "Training at Epoch 28 iteration 0 with loss 0.26304. Total time 0.38333 hours\n",
      "Training at Epoch 28 iteration 100 with loss 0.49763. Total time 0.38722 hours\n",
      "Training at Epoch 28 iteration 200 with loss 0.41751. Total time 0.39083 hours\n",
      "Training at Epoch 28 iteration 300 with loss 0.39176. Total time 0.39472 hours\n",
      "Validation at Epoch 28 , MSE: 0.27721 , Pearson Correlation: 0.79325 with p-value: 0.0 , Concordance Index: 0.82223\n",
      "Training at Epoch 29 iteration 0 with loss 0.26053. Total time 0.3975 hours\n",
      "Training at Epoch 29 iteration 100 with loss 0.35375. Total time 0.40111 hours\n",
      "Training at Epoch 29 iteration 200 with loss 0.26554. Total time 0.405 hours\n",
      "Training at Epoch 29 iteration 300 with loss 0.25873. Total time 0.40861 hours\n",
      "Validation at Epoch 29 , MSE: 0.26619 , Pearson Correlation: 0.80154 with p-value: 0.0 , Concordance Index: 0.82652\n",
      "Training at Epoch 30 iteration 0 with loss 0.29078. Total time 0.41138 hours\n",
      "Training at Epoch 30 iteration 100 with loss 0.35553. Total time 0.41527 hours\n",
      "Training at Epoch 30 iteration 200 with loss 0.34720. Total time 0.41888 hours\n",
      "Training at Epoch 30 iteration 300 with loss 0.28457. Total time 0.42277 hours\n",
      "Validation at Epoch 30 , MSE: 0.29511 , Pearson Correlation: 0.79913 with p-value: 0.0 , Concordance Index: 0.81999\n",
      "Training at Epoch 31 iteration 0 with loss 0.37252. Total time 0.42555 hours\n",
      "Training at Epoch 31 iteration 100 with loss 0.25923. Total time 0.42916 hours\n",
      "Training at Epoch 31 iteration 200 with loss 0.40907. Total time 0.43305 hours\n",
      "Training at Epoch 31 iteration 300 with loss 0.26887. Total time 0.43666 hours\n",
      "Validation at Epoch 31 , MSE: 0.26597 , Pearson Correlation: 0.80094 with p-value: 0.0 , Concordance Index: 0.82682\n",
      "Training at Epoch 32 iteration 0 with loss 0.23656. Total time 0.43944 hours\n",
      "Training at Epoch 32 iteration 100 with loss 0.32725. Total time 0.44333 hours\n",
      "Training at Epoch 32 iteration 200 with loss 0.26564. Total time 0.44694 hours\n",
      "Training at Epoch 32 iteration 300 with loss 0.29981. Total time 0.45083 hours\n",
      "Validation at Epoch 32 , MSE: 0.25042 , Pearson Correlation: 0.80803 with p-value: 0.0 , Concordance Index: 0.82529\n",
      "Training at Epoch 33 iteration 0 with loss 0.28344. Total time 0.45361 hours\n",
      "Training at Epoch 33 iteration 100 with loss 0.32948. Total time 0.4575 hours\n",
      "Training at Epoch 33 iteration 200 with loss 0.28293. Total time 0.46111 hours\n",
      "Training at Epoch 33 iteration 300 with loss 0.32189. Total time 0.465 hours\n",
      "Validation at Epoch 33 , MSE: 0.25936 , Pearson Correlation: 0.79961 with p-value: 0.0 , Concordance Index: 0.82471\n",
      "Training at Epoch 34 iteration 0 with loss 0.25677. Total time 0.46777 hours\n",
      "Training at Epoch 34 iteration 100 with loss 0.22997. Total time 0.47138 hours\n",
      "Training at Epoch 34 iteration 200 with loss 0.28192. Total time 0.47527 hours\n",
      "Training at Epoch 34 iteration 300 with loss 0.26001. Total time 0.47888 hours\n",
      "Validation at Epoch 34 , MSE: 0.24165 , Pearson Correlation: 0.81434 with p-value: 0.0 , Concordance Index: 0.83349\n",
      "Training at Epoch 35 iteration 0 with loss 0.27402. Total time 0.48166 hours\n",
      "Training at Epoch 35 iteration 100 with loss 0.32168. Total time 0.48555 hours\n",
      "Training at Epoch 35 iteration 200 with loss 0.30429. Total time 0.48944 hours\n",
      "Training at Epoch 35 iteration 300 with loss 0.23736. Total time 0.49305 hours\n",
      "Validation at Epoch 35 , MSE: 0.25557 , Pearson Correlation: 0.81584 with p-value: 0.0 , Concordance Index: 0.83516\n",
      "Training at Epoch 36 iteration 0 with loss 0.28568. Total time 0.49583 hours\n",
      "Training at Epoch 36 iteration 100 with loss 0.25884. Total time 0.49972 hours\n",
      "Training at Epoch 36 iteration 200 with loss 0.25604. Total time 0.50333 hours\n",
      "Training at Epoch 36 iteration 300 with loss 0.26478. Total time 0.50722 hours\n",
      "Validation at Epoch 36 , MSE: 0.28139 , Pearson Correlation: 0.80086 with p-value: 0.0 , Concordance Index: 0.82860\n",
      "Training at Epoch 37 iteration 0 with loss 0.28954. Total time 0.51 hours\n",
      "Training at Epoch 37 iteration 100 with loss 0.29432. Total time 0.51361 hours\n",
      "Training at Epoch 37 iteration 200 with loss 0.24972. Total time 0.5175 hours\n",
      "Training at Epoch 37 iteration 300 with loss 0.27536. Total time 0.52111 hours\n",
      "Validation at Epoch 37 , MSE: 0.30773 , Pearson Correlation: 0.81460 with p-value: 0.0 , Concordance Index: 0.83340\n",
      "Training at Epoch 38 iteration 0 with loss 0.25987. Total time 0.52388 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 38 iteration 100 with loss 0.21810. Total time 0.52777 hours\n",
      "Training at Epoch 38 iteration 200 with loss 0.26610. Total time 0.53138 hours\n",
      "Training at Epoch 38 iteration 300 with loss 0.30471. Total time 0.53527 hours\n",
      "Validation at Epoch 38 , MSE: 0.26448 , Pearson Correlation: 0.81389 with p-value: 0.0 , Concordance Index: 0.83570\n",
      "Training at Epoch 39 iteration 0 with loss 0.26182. Total time 0.53805 hours\n",
      "Training at Epoch 39 iteration 100 with loss 0.23472. Total time 0.54166 hours\n",
      "Training at Epoch 39 iteration 200 with loss 0.29707. Total time 0.54555 hours\n",
      "Training at Epoch 39 iteration 300 with loss 0.30288. Total time 0.54916 hours\n",
      "Validation at Epoch 39 , MSE: 0.28895 , Pearson Correlation: 0.81387 with p-value: 0.0 , Concordance Index: 0.83650\n",
      "Training at Epoch 40 iteration 0 with loss 0.34794. Total time 0.55194 hours\n",
      "Training at Epoch 40 iteration 100 with loss 0.25351. Total time 0.55583 hours\n",
      "Training at Epoch 40 iteration 200 with loss 0.27660. Total time 0.55972 hours\n",
      "Training at Epoch 40 iteration 300 with loss 0.27578. Total time 0.56333 hours\n",
      "Validation at Epoch 40 , MSE: 0.32783 , Pearson Correlation: 0.81827 with p-value: 0.0 , Concordance Index: 0.83618\n",
      "Training at Epoch 41 iteration 0 with loss 0.30531. Total time 0.56611 hours\n",
      "Training at Epoch 41 iteration 100 with loss 0.27178. Total time 0.57 hours\n",
      "Training at Epoch 41 iteration 200 with loss 0.29845. Total time 0.57361 hours\n",
      "Training at Epoch 41 iteration 300 with loss 0.28334. Total time 0.5775 hours\n",
      "Validation at Epoch 41 , MSE: 0.26894 , Pearson Correlation: 0.82132 with p-value: 0.0 , Concordance Index: 0.83808\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 40 Testing MSE: 0.3368228123738305 , Pearson Correlation: 0.7646742925591481 with p-value: 0.0 , Concordance Index: 0.7801521634563299\n",
      "Training at Epoch 42 iteration 0 with loss 0.26526. Total time 0.58388 hours\n",
      "Training at Epoch 42 iteration 100 with loss 0.21974. Total time 0.5875 hours\n",
      "Training at Epoch 42 iteration 200 with loss 0.24887. Total time 0.59138 hours\n",
      "Training at Epoch 42 iteration 300 with loss 0.37058. Total time 0.595 hours\n",
      "Validation at Epoch 42 , MSE: 0.23331 , Pearson Correlation: 0.82289 with p-value: 0.0 , Concordance Index: 0.84034\n",
      "Training at Epoch 43 iteration 0 with loss 0.24217. Total time 0.59805 hours\n",
      "Training at Epoch 43 iteration 100 with loss 0.22729. Total time 0.60166 hours\n",
      "Training at Epoch 43 iteration 200 with loss 0.24245. Total time 0.60555 hours\n",
      "Training at Epoch 43 iteration 300 with loss 0.26374. Total time 0.60916 hours\n",
      "Validation at Epoch 43 , MSE: 0.28124 , Pearson Correlation: 0.82126 with p-value: 0.0 , Concordance Index: 0.83654\n",
      "Training at Epoch 44 iteration 0 with loss 0.34047. Total time 0.61194 hours\n",
      "Training at Epoch 44 iteration 100 with loss 0.20953. Total time 0.61583 hours\n",
      "Training at Epoch 44 iteration 200 with loss 0.20042. Total time 0.61944 hours\n",
      "Training at Epoch 44 iteration 300 with loss 0.21072. Total time 0.62333 hours\n",
      "Validation at Epoch 44 , MSE: 0.27288 , Pearson Correlation: 0.82111 with p-value: 0.0 , Concordance Index: 0.83886\n",
      "Training at Epoch 45 iteration 0 with loss 0.22208. Total time 0.62611 hours\n",
      "Training at Epoch 45 iteration 100 with loss 0.20698. Total time 0.63 hours\n",
      "Training at Epoch 45 iteration 200 with loss 0.21405. Total time 0.63361 hours\n",
      "Training at Epoch 45 iteration 300 with loss 0.21901. Total time 0.6375 hours\n",
      "Validation at Epoch 45 , MSE: 0.22451 , Pearson Correlation: 0.83054 with p-value: 0.0 , Concordance Index: 0.84230\n",
      "Training at Epoch 46 iteration 0 with loss 0.22038. Total time 0.64027 hours\n",
      "Training at Epoch 46 iteration 100 with loss 0.20354. Total time 0.64388 hours\n",
      "Training at Epoch 46 iteration 200 with loss 0.25219. Total time 0.64777 hours\n",
      "Training at Epoch 46 iteration 300 with loss 0.21656. Total time 0.65138 hours\n",
      "Validation at Epoch 46 , MSE: 0.23568 , Pearson Correlation: 0.81975 with p-value: 0.0 , Concordance Index: 0.84115\n",
      "Training at Epoch 47 iteration 0 with loss 0.20303. Total time 0.65416 hours\n",
      "Training at Epoch 47 iteration 100 with loss 0.24390. Total time 0.65805 hours\n",
      "Training at Epoch 47 iteration 200 with loss 0.40901. Total time 0.66194 hours\n",
      "Training at Epoch 47 iteration 300 with loss 0.22984. Total time 0.66555 hours\n",
      "Validation at Epoch 47 , MSE: 0.22618 , Pearson Correlation: 0.82909 with p-value: 0.0 , Concordance Index: 0.84335\n",
      "Training at Epoch 48 iteration 0 with loss 0.26846. Total time 0.66833 hours\n",
      "Training at Epoch 48 iteration 100 with loss 0.27791. Total time 0.67222 hours\n",
      "Training at Epoch 48 iteration 200 with loss 0.33681. Total time 0.67583 hours\n",
      "Training at Epoch 48 iteration 300 with loss 0.24988. Total time 0.67972 hours\n",
      "Validation at Epoch 48 , MSE: 0.24070 , Pearson Correlation: 0.82015 with p-value: 0.0 , Concordance Index: 0.83888\n",
      "Training at Epoch 49 iteration 0 with loss 0.22285. Total time 0.6825 hours\n",
      "Training at Epoch 49 iteration 100 with loss 0.21548. Total time 0.68611 hours\n",
      "Training at Epoch 49 iteration 200 with loss 0.21740. Total time 0.69 hours\n",
      "Training at Epoch 49 iteration 300 with loss 0.25043. Total time 0.69388 hours\n",
      "Validation at Epoch 49 , MSE: 0.25231 , Pearson Correlation: 0.82645 with p-value: 0.0 , Concordance Index: 0.84517\n",
      "Training at Epoch 50 iteration 0 with loss 0.20604. Total time 0.69666 hours\n",
      "Training at Epoch 50 iteration 100 with loss 0.22722. Total time 0.70055 hours\n",
      "Training at Epoch 50 iteration 200 with loss 0.20312. Total time 0.70416 hours\n",
      "Training at Epoch 50 iteration 300 with loss 0.31790. Total time 0.70777 hours\n",
      "Validation at Epoch 50 , MSE: 0.22528 , Pearson Correlation: 0.83004 with p-value: 0.0 , Concordance Index: 0.84240\n",
      "Training at Epoch 51 iteration 0 with loss 0.19402. Total time 0.71083 hours\n",
      "Training at Epoch 51 iteration 100 with loss 0.25074. Total time 0.71444 hours\n",
      "Training at Epoch 51 iteration 200 with loss 0.26080. Total time 0.71833 hours\n",
      "Training at Epoch 51 iteration 300 with loss 0.19880. Total time 0.72194 hours\n",
      "Validation at Epoch 51 , MSE: 0.22345 , Pearson Correlation: 0.83390 with p-value: 0.0 , Concordance Index: 0.84785\n",
      "Training at Epoch 52 iteration 0 with loss 0.24404. Total time 0.72472 hours\n",
      "Training at Epoch 52 iteration 100 with loss 0.28444. Total time 0.72861 hours\n",
      "Training at Epoch 52 iteration 200 with loss 0.21236. Total time 0.73222 hours\n",
      "Training at Epoch 52 iteration 300 with loss 0.23831. Total time 0.73611 hours\n",
      "Validation at Epoch 52 , MSE: 0.21688 , Pearson Correlation: 0.83658 with p-value: 0.0 , Concordance Index: 0.84965\n",
      "Training at Epoch 53 iteration 0 with loss 0.18968. Total time 0.73888 hours\n",
      "Training at Epoch 53 iteration 100 with loss 0.24068. Total time 0.7425 hours\n",
      "Training at Epoch 53 iteration 200 with loss 0.20330. Total time 0.74638 hours\n",
      "Training at Epoch 53 iteration 300 with loss 0.25511. Total time 0.75 hours\n",
      "Validation at Epoch 53 , MSE: 0.22084 , Pearson Correlation: 0.83290 with p-value: 0.0 , Concordance Index: 0.84363\n",
      "Training at Epoch 54 iteration 0 with loss 0.20776. Total time 0.75277 hours\n",
      "Training at Epoch 54 iteration 100 with loss 0.21094. Total time 0.75666 hours\n",
      "Training at Epoch 54 iteration 200 with loss 0.23957. Total time 0.76055 hours\n",
      "Training at Epoch 54 iteration 300 with loss 0.13597. Total time 0.76416 hours\n",
      "Validation at Epoch 54 , MSE: 0.22161 , Pearson Correlation: 0.83214 with p-value: 0.0 , Concordance Index: 0.84513\n",
      "Training at Epoch 55 iteration 0 with loss 0.59346. Total time 0.76694 hours\n",
      "Training at Epoch 55 iteration 100 with loss 0.24758. Total time 0.77083 hours\n",
      "Training at Epoch 55 iteration 200 with loss 0.16775. Total time 0.77444 hours\n",
      "Training at Epoch 55 iteration 300 with loss 0.21293. Total time 0.77833 hours\n",
      "Validation at Epoch 55 , MSE: 0.21720 , Pearson Correlation: 0.83618 with p-value: 0.0 , Concordance Index: 0.84936\n",
      "Training at Epoch 56 iteration 0 with loss 0.19630. Total time 0.78111 hours\n",
      "Training at Epoch 56 iteration 100 with loss 0.20293. Total time 0.78472 hours\n",
      "Training at Epoch 56 iteration 200 with loss 0.21515. Total time 0.78861 hours\n",
      "Training at Epoch 56 iteration 300 with loss 0.20496. Total time 0.79222 hours\n",
      "Validation at Epoch 56 , MSE: 0.21226 , Pearson Correlation: 0.84109 with p-value: 0.0 , Concordance Index: 0.84837\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 57 iteration 0 with loss 0.17798. Total time 0.795 hours\n",
      "Training at Epoch 57 iteration 100 with loss 0.22226. Total time 0.79888 hours\n",
      "Training at Epoch 57 iteration 200 with loss 0.23491. Total time 0.80277 hours\n",
      "Training at Epoch 57 iteration 300 with loss 0.25323. Total time 0.80638 hours\n",
      "Validation at Epoch 57 , MSE: 0.21902 , Pearson Correlation: 0.83495 with p-value: 0.0 , Concordance Index: 0.84603\n",
      "Training at Epoch 58 iteration 0 with loss 0.20007. Total time 0.80916 hours\n",
      "Training at Epoch 58 iteration 100 with loss 0.22618. Total time 0.81305 hours\n",
      "Training at Epoch 58 iteration 200 with loss 0.18371. Total time 0.81666 hours\n",
      "Training at Epoch 58 iteration 300 with loss 0.24584. Total time 0.82027 hours\n",
      "Validation at Epoch 58 , MSE: 0.23095 , Pearson Correlation: 0.83327 with p-value: 0.0 , Concordance Index: 0.84999\n",
      "Training at Epoch 59 iteration 0 with loss 0.18011. Total time 0.82333 hours\n",
      "Training at Epoch 59 iteration 100 with loss 0.21447. Total time 0.82694 hours\n",
      "Training at Epoch 59 iteration 200 with loss 0.19856. Total time 0.83083 hours\n",
      "Training at Epoch 59 iteration 300 with loss 0.25264. Total time 0.83444 hours\n",
      "Validation at Epoch 59 , MSE: 0.21480 , Pearson Correlation: 0.84246 with p-value: 0.0 , Concordance Index: 0.85506\n",
      "Training at Epoch 60 iteration 0 with loss 0.16435. Total time 0.83722 hours\n",
      "Training at Epoch 60 iteration 100 with loss 0.16932. Total time 0.84111 hours\n",
      "Training at Epoch 60 iteration 200 with loss 0.16038. Total time 0.845 hours\n",
      "Training at Epoch 60 iteration 300 with loss 0.18840. Total time 0.84861 hours\n",
      "Validation at Epoch 60 , MSE: 0.21215 , Pearson Correlation: 0.84259 with p-value: 0.0 , Concordance Index: 0.85430\n",
      "Training at Epoch 61 iteration 0 with loss 0.22029. Total time 0.85138 hours\n",
      "Training at Epoch 61 iteration 100 with loss 0.18727. Total time 0.85527 hours\n",
      "Training at Epoch 61 iteration 200 with loss 0.21758. Total time 0.85888 hours\n",
      "Training at Epoch 61 iteration 300 with loss 0.20667. Total time 0.86277 hours\n",
      "Validation at Epoch 61 , MSE: 0.22455 , Pearson Correlation: 0.83637 with p-value: 0.0 , Concordance Index: 0.85506\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 60 Testing MSE: 0.2653183776646317 , Pearson Correlation: 0.797618942630267 with p-value: 0.0 , Concordance Index: 0.7996500720125344\n",
      "Training at Epoch 62 iteration 0 with loss 0.17305. Total time 0.86916 hours\n",
      "Training at Epoch 62 iteration 100 with loss 0.14357. Total time 0.87277 hours\n",
      "Training at Epoch 62 iteration 200 with loss 0.17496. Total time 0.87666 hours\n",
      "Training at Epoch 62 iteration 300 with loss 0.16917. Total time 0.88027 hours\n",
      "Validation at Epoch 62 , MSE: 0.21413 , Pearson Correlation: 0.84721 with p-value: 0.0 , Concordance Index: 0.85751\n",
      "Training at Epoch 63 iteration 0 with loss 0.17127. Total time 0.88333 hours\n",
      "Training at Epoch 63 iteration 100 with loss 0.17046. Total time 0.88694 hours\n",
      "Training at Epoch 63 iteration 200 with loss 0.16702. Total time 0.89083 hours\n",
      "Training at Epoch 63 iteration 300 with loss 0.15568. Total time 0.89444 hours\n",
      "Validation at Epoch 63 , MSE: 0.20681 , Pearson Correlation: 0.84560 with p-value: 0.0 , Concordance Index: 0.85637\n",
      "Training at Epoch 64 iteration 0 with loss 0.17589. Total time 0.89722 hours\n",
      "Training at Epoch 64 iteration 100 with loss 0.22681. Total time 0.90111 hours\n",
      "Training at Epoch 64 iteration 200 with loss 0.18827. Total time 0.905 hours\n",
      "Training at Epoch 64 iteration 300 with loss 0.18500. Total time 0.90861 hours\n",
      "Validation at Epoch 64 , MSE: 0.20737 , Pearson Correlation: 0.84612 with p-value: 0.0 , Concordance Index: 0.85795\n",
      "Training at Epoch 65 iteration 0 with loss 0.13122. Total time 0.91138 hours\n",
      "Training at Epoch 65 iteration 100 with loss 0.19203. Total time 0.91527 hours\n",
      "Training at Epoch 65 iteration 200 with loss 0.14013. Total time 0.91888 hours\n",
      "Training at Epoch 65 iteration 300 with loss 0.22519. Total time 0.92277 hours\n",
      "Validation at Epoch 65 , MSE: 0.20770 , Pearson Correlation: 0.84376 with p-value: 0.0 , Concordance Index: 0.85308\n",
      "Training at Epoch 66 iteration 0 with loss 0.22146. Total time 0.92555 hours\n",
      "Training at Epoch 66 iteration 100 with loss 0.12149. Total time 0.92944 hours\n",
      "Training at Epoch 66 iteration 200 with loss 0.16819. Total time 0.93305 hours\n",
      "Training at Epoch 66 iteration 300 with loss 0.17204. Total time 0.93666 hours\n",
      "Validation at Epoch 66 , MSE: 0.21338 , Pearson Correlation: 0.83937 with p-value: 0.0 , Concordance Index: 0.85112\n",
      "Training at Epoch 67 iteration 0 with loss 0.17563. Total time 0.93972 hours\n",
      "Training at Epoch 67 iteration 100 with loss 0.21116. Total time 0.94333 hours\n",
      "Training at Epoch 67 iteration 200 with loss 0.21551. Total time 0.94722 hours\n",
      "Training at Epoch 67 iteration 300 with loss 0.17280. Total time 0.95083 hours\n",
      "Validation at Epoch 67 , MSE: 0.20540 , Pearson Correlation: 0.84630 with p-value: 0.0 , Concordance Index: 0.85619\n",
      "Training at Epoch 68 iteration 0 with loss 0.15063. Total time 0.95361 hours\n",
      "Training at Epoch 68 iteration 100 with loss 0.18251. Total time 0.9575 hours\n",
      "Training at Epoch 68 iteration 200 with loss 0.18211. Total time 0.96111 hours\n",
      "Training at Epoch 68 iteration 300 with loss 0.17691. Total time 0.965 hours\n",
      "Validation at Epoch 68 , MSE: 0.21474 , Pearson Correlation: 0.84418 with p-value: 0.0 , Concordance Index: 0.85778\n",
      "Training at Epoch 69 iteration 0 with loss 0.20863. Total time 0.96777 hours\n",
      "Training at Epoch 69 iteration 100 with loss 0.15184. Total time 0.97138 hours\n",
      "Training at Epoch 69 iteration 200 with loss 0.15800. Total time 0.97527 hours\n",
      "Training at Epoch 69 iteration 300 with loss 0.19066. Total time 0.97888 hours\n",
      "Validation at Epoch 69 , MSE: 0.20400 , Pearson Correlation: 0.84878 with p-value: 0.0 , Concordance Index: 0.85978\n",
      "Training at Epoch 70 iteration 0 with loss 0.15482. Total time 0.98194 hours\n",
      "Training at Epoch 70 iteration 100 with loss 0.22220. Total time 0.98555 hours\n",
      "Training at Epoch 70 iteration 200 with loss 0.17346. Total time 0.98944 hours\n",
      "Training at Epoch 70 iteration 300 with loss 0.19059. Total time 0.99305 hours\n",
      "Validation at Epoch 70 , MSE: 0.20296 , Pearson Correlation: 0.84717 with p-value: 0.0 , Concordance Index: 0.85674\n",
      "Training at Epoch 71 iteration 0 with loss 0.19538. Total time 0.99583 hours\n",
      "Training at Epoch 71 iteration 100 with loss 0.16872. Total time 0.99972 hours\n",
      "Training at Epoch 71 iteration 200 with loss 0.14918. Total time 1.00333 hours\n",
      "Training at Epoch 71 iteration 300 with loss 0.14497. Total time 1.00722 hours\n",
      "Validation at Epoch 71 , MSE: 0.19967 , Pearson Correlation: 0.84974 with p-value: 0.0 , Concordance Index: 0.85628\n",
      "Training at Epoch 72 iteration 0 with loss 0.14263. Total time 1.01 hours\n",
      "Training at Epoch 72 iteration 100 with loss 0.13531. Total time 1.01361 hours\n",
      "Training at Epoch 72 iteration 200 with loss 0.22022. Total time 1.0175 hours\n",
      "Training at Epoch 72 iteration 300 with loss 0.22002. Total time 1.02111 hours\n",
      "Validation at Epoch 72 , MSE: 0.22985 , Pearson Correlation: 0.84385 with p-value: 0.0 , Concordance Index: 0.85945\n",
      "Training at Epoch 73 iteration 0 with loss 0.22349. Total time 1.02388 hours\n",
      "Training at Epoch 73 iteration 100 with loss 0.21013. Total time 1.02777 hours\n",
      "Training at Epoch 73 iteration 200 with loss 0.12794. Total time 1.03138 hours\n",
      "Training at Epoch 73 iteration 300 with loss 0.16381. Total time 1.03527 hours\n",
      "Validation at Epoch 73 , MSE: 0.19958 , Pearson Correlation: 0.85084 with p-value: 0.0 , Concordance Index: 0.85900\n",
      "Training at Epoch 74 iteration 0 with loss 0.12993. Total time 1.03805 hours\n",
      "Training at Epoch 74 iteration 100 with loss 0.12734. Total time 1.04194 hours\n",
      "Training at Epoch 74 iteration 200 with loss 0.19504. Total time 1.04555 hours\n",
      "Training at Epoch 74 iteration 300 with loss 0.19486. Total time 1.04916 hours\n",
      "Validation at Epoch 74 , MSE: 0.19491 , Pearson Correlation: 0.85436 with p-value: 0.0 , Concordance Index: 0.86202\n",
      "Training at Epoch 75 iteration 0 with loss 0.16880. Total time 1.05222 hours\n",
      "Training at Epoch 75 iteration 100 with loss 0.19224. Total time 1.05583 hours\n",
      "Training at Epoch 75 iteration 200 with loss 0.17224. Total time 1.05972 hours\n",
      "Training at Epoch 75 iteration 300 with loss 0.22439. Total time 1.06333 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Validation at Epoch 75 , MSE: 0.21431 , Pearson Correlation: 0.84862 with p-value: 0.0 , Concordance Index: 0.85831\n",
      "Training at Epoch 76 iteration 0 with loss 0.21068. Total time 1.06611 hours\n",
      "Training at Epoch 76 iteration 100 with loss 0.21937. Total time 1.07 hours\n",
      "Training at Epoch 76 iteration 200 with loss 0.21036. Total time 1.07361 hours\n",
      "Training at Epoch 76 iteration 300 with loss 0.21237. Total time 1.07722 hours\n",
      "Validation at Epoch 76 , MSE: 0.19442 , Pearson Correlation: 0.85405 with p-value: 0.0 , Concordance Index: 0.86211\n",
      "Training at Epoch 77 iteration 0 with loss 0.17612. Total time 1.08027 hours\n",
      "Training at Epoch 77 iteration 100 with loss 0.12369. Total time 1.08388 hours\n",
      "Training at Epoch 77 iteration 200 with loss 0.18700. Total time 1.08777 hours\n",
      "Training at Epoch 77 iteration 300 with loss 0.13235. Total time 1.09138 hours\n",
      "Validation at Epoch 77 , MSE: 0.19594 , Pearson Correlation: 0.85307 with p-value: 0.0 , Concordance Index: 0.86285\n",
      "Training at Epoch 78 iteration 0 with loss 0.20074. Total time 1.09416 hours\n",
      "Training at Epoch 78 iteration 100 with loss 0.18388. Total time 1.09805 hours\n",
      "Training at Epoch 78 iteration 200 with loss 0.14672. Total time 1.10166 hours\n",
      "Training at Epoch 78 iteration 300 with loss 0.15792. Total time 1.10555 hours\n",
      "Validation at Epoch 78 , MSE: 0.20545 , Pearson Correlation: 0.85130 with p-value: 0.0 , Concordance Index: 0.86294\n",
      "Training at Epoch 79 iteration 0 with loss 0.14778. Total time 1.10833 hours\n",
      "Training at Epoch 79 iteration 100 with loss 0.14336. Total time 1.11194 hours\n",
      "Training at Epoch 79 iteration 200 with loss 0.19823. Total time 1.11583 hours\n",
      "Training at Epoch 79 iteration 300 with loss 0.14779. Total time 1.11944 hours\n",
      "Validation at Epoch 79 , MSE: 0.19972 , Pearson Correlation: 0.85314 with p-value: 0.0 , Concordance Index: 0.86506\n",
      "Training at Epoch 80 iteration 0 with loss 0.14974. Total time 1.12222 hours\n",
      "Training at Epoch 80 iteration 100 with loss 0.16621. Total time 1.12611 hours\n",
      "Training at Epoch 80 iteration 200 with loss 0.18190. Total time 1.12972 hours\n",
      "Training at Epoch 80 iteration 300 with loss 0.14145. Total time 1.13361 hours\n",
      "Validation at Epoch 80 , MSE: 0.20104 , Pearson Correlation: 0.85369 with p-value: 0.0 , Concordance Index: 0.86276\n",
      "Training at Epoch 81 iteration 0 with loss 0.14125. Total time 1.13638 hours\n",
      "Training at Epoch 81 iteration 100 with loss 0.22879. Total time 1.14027 hours\n",
      "Training at Epoch 81 iteration 200 with loss 0.17614. Total time 1.14388 hours\n",
      "Training at Epoch 81 iteration 300 with loss 0.16630. Total time 1.14777 hours\n",
      "Validation at Epoch 81 , MSE: 0.21375 , Pearson Correlation: 0.83849 with p-value: 0.0 , Concordance Index: 0.85865\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 80 Testing MSE: 0.2474008412582002 , Pearson Correlation: 0.8109559591468868 with p-value: 0.0 , Concordance Index: 0.8091842842479359\n",
      "Training at Epoch 82 iteration 0 with loss 0.22372. Total time 1.15416 hours\n",
      "Training at Epoch 82 iteration 100 with loss 0.21971. Total time 1.15805 hours\n",
      "Training at Epoch 82 iteration 200 with loss 0.14350. Total time 1.16166 hours\n",
      "Training at Epoch 82 iteration 300 with loss 0.14440. Total time 1.16555 hours\n",
      "Validation at Epoch 82 , MSE: 0.19857 , Pearson Correlation: 0.85331 with p-value: 0.0 , Concordance Index: 0.86496\n",
      "Training at Epoch 83 iteration 0 with loss 0.12652. Total time 1.16833 hours\n",
      "Training at Epoch 83 iteration 100 with loss 0.14947. Total time 1.17194 hours\n",
      "Training at Epoch 83 iteration 200 with loss 0.16195. Total time 1.17583 hours\n",
      "Training at Epoch 83 iteration 300 with loss 0.17037. Total time 1.17944 hours\n",
      "Validation at Epoch 83 , MSE: 0.19214 , Pearson Correlation: 0.85585 with p-value: 0.0 , Concordance Index: 0.86546\n",
      "Training at Epoch 84 iteration 0 with loss 0.13372. Total time 1.18222 hours\n",
      "Training at Epoch 84 iteration 100 with loss 0.15681. Total time 1.18611 hours\n",
      "Training at Epoch 84 iteration 200 with loss 0.15661. Total time 1.18972 hours\n",
      "Training at Epoch 84 iteration 300 with loss 0.12449. Total time 1.19361 hours\n",
      "Validation at Epoch 84 , MSE: 0.19415 , Pearson Correlation: 0.85517 with p-value: 0.0 , Concordance Index: 0.86288\n",
      "Training at Epoch 85 iteration 0 with loss 0.11354. Total time 1.19638 hours\n",
      "Training at Epoch 85 iteration 100 with loss 0.13206. Total time 1.20027 hours\n",
      "Training at Epoch 85 iteration 200 with loss 0.16779. Total time 1.20416 hours\n",
      "Training at Epoch 85 iteration 300 with loss 0.13385. Total time 1.20777 hours\n",
      "Validation at Epoch 85 , MSE: 0.19491 , Pearson Correlation: 0.85478 with p-value: 0.0 , Concordance Index: 0.86307\n",
      "Training at Epoch 86 iteration 0 with loss 0.13554. Total time 1.21083 hours\n",
      "Training at Epoch 86 iteration 100 with loss 0.14327. Total time 1.21444 hours\n",
      "Training at Epoch 86 iteration 200 with loss 0.16737. Total time 1.21833 hours\n",
      "Training at Epoch 86 iteration 300 with loss 0.14134. Total time 1.22194 hours\n",
      "Validation at Epoch 86 , MSE: 0.19103 , Pearson Correlation: 0.85735 with p-value: 0.0 , Concordance Index: 0.86504\n",
      "Training at Epoch 87 iteration 0 with loss 0.14991. Total time 1.22472 hours\n",
      "Training at Epoch 87 iteration 100 with loss 0.12522. Total time 1.22861 hours\n",
      "Training at Epoch 87 iteration 200 with loss 0.18255. Total time 1.23222 hours\n",
      "Training at Epoch 87 iteration 300 with loss 0.14019. Total time 1.23583 hours\n",
      "Validation at Epoch 87 , MSE: 0.19058 , Pearson Correlation: 0.85964 with p-value: 0.0 , Concordance Index: 0.86591\n",
      "Training at Epoch 88 iteration 0 with loss 0.11355. Total time 1.23888 hours\n",
      "Training at Epoch 88 iteration 100 with loss 0.17029. Total time 1.2425 hours\n",
      "Training at Epoch 88 iteration 200 with loss 0.17968. Total time 1.24638 hours\n",
      "Training at Epoch 88 iteration 300 with loss 0.14418. Total time 1.25 hours\n",
      "Validation at Epoch 88 , MSE: 0.19723 , Pearson Correlation: 0.85364 with p-value: 0.0 , Concordance Index: 0.86223\n",
      "Training at Epoch 89 iteration 0 with loss 0.12990. Total time 1.25277 hours\n",
      "Training at Epoch 89 iteration 100 with loss 0.16355. Total time 1.25666 hours\n",
      "Training at Epoch 89 iteration 200 with loss 0.14539. Total time 1.26055 hours\n",
      "Training at Epoch 89 iteration 300 with loss 0.17691. Total time 1.26416 hours\n",
      "Validation at Epoch 89 , MSE: 0.21329 , Pearson Correlation: 0.85375 with p-value: 0.0 , Concordance Index: 0.86472\n",
      "Training at Epoch 90 iteration 0 with loss 0.18642. Total time 1.26694 hours\n",
      "Training at Epoch 90 iteration 100 with loss 0.17898. Total time 1.27083 hours\n",
      "Training at Epoch 90 iteration 200 with loss 0.10409. Total time 1.27444 hours\n",
      "Training at Epoch 90 iteration 300 with loss 0.17258. Total time 1.27833 hours\n",
      "Validation at Epoch 90 , MSE: 0.19402 , Pearson Correlation: 0.85457 with p-value: 0.0 , Concordance Index: 0.86488\n",
      "Training at Epoch 91 iteration 0 with loss 0.16290. Total time 1.28111 hours\n",
      "Training at Epoch 91 iteration 100 with loss 0.12176. Total time 1.28472 hours\n",
      "Training at Epoch 91 iteration 200 with loss 0.12500. Total time 1.28861 hours\n",
      "Training at Epoch 91 iteration 300 with loss 0.15486. Total time 1.29222 hours\n",
      "Validation at Epoch 91 , MSE: 0.19891 , Pearson Correlation: 0.86042 with p-value: 0.0 , Concordance Index: 0.86908\n",
      "Training at Epoch 92 iteration 0 with loss 0.13887. Total time 1.295 hours\n",
      "Training at Epoch 92 iteration 100 with loss 0.11123. Total time 1.29888 hours\n",
      "Training at Epoch 92 iteration 200 with loss 0.16042. Total time 1.30277 hours\n",
      "Training at Epoch 92 iteration 300 with loss 0.15441. Total time 1.30638 hours\n",
      "Validation at Epoch 92 , MSE: 0.19927 , Pearson Correlation: 0.85440 with p-value: 0.0 , Concordance Index: 0.86449\n",
      "Training at Epoch 93 iteration 0 with loss 0.11973. Total time 1.30916 hours\n",
      "Training at Epoch 93 iteration 100 with loss 0.13681. Total time 1.31305 hours\n",
      "Training at Epoch 93 iteration 200 with loss 0.15384. Total time 1.31666 hours\n",
      "Training at Epoch 93 iteration 300 with loss 0.13701. Total time 1.32055 hours\n",
      "Validation at Epoch 93 , MSE: 0.19882 , Pearson Correlation: 0.85108 with p-value: 0.0 , Concordance Index: 0.86164\n",
      "Training at Epoch 94 iteration 0 with loss 0.13839. Total time 1.32333 hours\n",
      "Training at Epoch 94 iteration 100 with loss 0.14846. Total time 1.32694 hours\n",
      "Training at Epoch 94 iteration 200 with loss 0.16300. Total time 1.33083 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 94 iteration 300 with loss 0.14733. Total time 1.33444 hours\n",
      "Validation at Epoch 94 , MSE: 0.19506 , Pearson Correlation: 0.85601 with p-value: 0.0 , Concordance Index: 0.86590\n",
      "Training at Epoch 95 iteration 0 with loss 0.12448. Total time 1.33722 hours\n",
      "Training at Epoch 95 iteration 100 with loss 0.15034. Total time 1.34111 hours\n",
      "Training at Epoch 95 iteration 200 with loss 0.14664. Total time 1.345 hours\n",
      "Training at Epoch 95 iteration 300 with loss 0.15554. Total time 1.34861 hours\n",
      "Validation at Epoch 95 , MSE: 0.20070 , Pearson Correlation: 0.85500 with p-value: 0.0 , Concordance Index: 0.86557\n",
      "Training at Epoch 96 iteration 0 with loss 0.13636. Total time 1.35138 hours\n",
      "Training at Epoch 96 iteration 100 with loss 0.12492. Total time 1.35527 hours\n",
      "Training at Epoch 96 iteration 200 with loss 0.11337. Total time 1.35888 hours\n",
      "Training at Epoch 96 iteration 300 with loss 0.13266. Total time 1.36277 hours\n",
      "Validation at Epoch 96 , MSE: 0.19898 , Pearson Correlation: 0.85722 with p-value: 0.0 , Concordance Index: 0.86640\n",
      "Training at Epoch 97 iteration 0 with loss 0.11611. Total time 1.36555 hours\n",
      "Training at Epoch 97 iteration 100 with loss 0.14385. Total time 1.36916 hours\n",
      "Training at Epoch 97 iteration 200 with loss 0.14467. Total time 1.37305 hours\n",
      "Training at Epoch 97 iteration 300 with loss 0.15690. Total time 1.37666 hours\n",
      "Validation at Epoch 97 , MSE: 0.19191 , Pearson Correlation: 0.85676 with p-value: 0.0 , Concordance Index: 0.86682\n",
      "Training at Epoch 98 iteration 0 with loss 0.14054. Total time 1.37944 hours\n",
      "Training at Epoch 98 iteration 100 with loss 0.13113. Total time 1.38333 hours\n",
      "Training at Epoch 98 iteration 200 with loss 0.14959. Total time 1.38722 hours\n",
      "Training at Epoch 98 iteration 300 with loss 0.17422. Total time 1.39083 hours\n",
      "Validation at Epoch 98 , MSE: 0.20405 , Pearson Correlation: 0.85163 with p-value: 0.0 , Concordance Index: 0.86469\n",
      "Training at Epoch 99 iteration 0 with loss 0.13274. Total time 1.39361 hours\n",
      "Training at Epoch 99 iteration 100 with loss 0.15996. Total time 1.3975 hours\n",
      "Training at Epoch 99 iteration 200 with loss 0.14906. Total time 1.40111 hours\n",
      "Training at Epoch 99 iteration 300 with loss 0.12806. Total time 1.40472 hours\n",
      "Validation at Epoch 99 , MSE: 0.19927 , Pearson Correlation: 0.85767 with p-value: 0.0 , Concordance Index: 0.86582\n",
      "Training at Epoch 100 iteration 0 with loss 0.12908. Total time 1.40777 hours\n",
      "Training at Epoch 100 iteration 100 with loss 0.13413. Total time 1.41138 hours\n",
      "Training at Epoch 100 iteration 200 with loss 0.13029. Total time 1.41527 hours\n",
      "Training at Epoch 100 iteration 300 with loss 0.17737. Total time 1.41888 hours\n",
      "Validation at Epoch 100 , MSE: 0.19282 , Pearson Correlation: 0.85586 with p-value: 0.0 , Concordance Index: 0.86479\n",
      "--- Go for Testing ---\n",
      "Testing MSE: 0.22809943877898053 , Pearson Correlation: 0.8289467285781376 with p-value: 0.0 , Concordance Index: 0.8196666655012373\n",
      "--- Training Finished ---\n"
     ]
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYoAAAELCAYAAADHksFtAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjMsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+AADFEAAAdOElEQVR4nO3de7xcZX3v8c+XhFtATxKy0TQhCSBFgVIuuxwUDl7iqUAtQSqnaNBw8UQBj6DUAqZUbIlKtSCeUmwUMDRbEREqFVQQuYjl4g6XgCAmcgmBkGwIoBIlAr/+8TybzEzWnszemeue7/v1mtes9aw1a/1mMtm/Wb9nrWcpIjAzMxvKZq0OwMzM2psThZmZVeVEYWZmVTlRmJlZVU4UZmZW1dhWB1BvkyZNihkzZrQ6DDOzjrJ48eKnI6KnaNmoSxQzZsygv7+/1WGYmXUUSY8NtcylJzMzq8qJwszMqmpqopB0saTVku4vWPY3kkLSpDwvSV+WtEzSEkn7NDNWMzNLmn1E8XXg4MpGSTsA/xtYXtJ8CLBLfswFLmxCfGZmVqGpiSIibgHWFCw6D/hboHTgqVnApZHcDoyXNLkJYZqZWYmW91FIOgx4IiLurVg0BXi8ZH5FbivaxlxJ/ZL6BwYGhh1DXx/MmAGbbZae+/qGvQkzs1GrpafHShoHzAP+vGhxQVvhULcRsQBYANDb2zus4XD7+mDuXFi7Ns0/9liaB5g9ezhbMjMbnVp9RLEzsCNwr6RHganAXZJeTzqC2KFk3anAk/UOYN689Uli0Nq1qd3MzFqcKCLivojYP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iYhlGwn7bNIgcYdEvt+BpNtyTKeSktWgScBBEbE0r3cXKVn8H+CzG9mP2QZ8RGFW7s3Aa4E+SWMHH6S+jV+Qbpla6vbKJAGQSz83SnoGeIk02OAfA7tWrrsxkrYhdbp/K9bfFIdId0T7KfDWipcsHUwSeb3VpCOaaZiNgI8ozMoN3gnuR0Msf7ZifoNSUT7l9lrgh6QjiJXAy6SzmLYaQUwTSKO+FpWlngKmV7QV3dL1xRHu28yJwqzCM/n5GFKpqNJvKuaLhl/+K9JRxBER8YfBxnxLz+dGENOzeT+vL1j2etbHbNYQThTWrV7Mz1tXtP8XKRm8ISIWjnDb40hHEK8mEUnvIJV+HilZb6gYykTEC5IWA0dKOisiXs7bnA68Bfj/I4zTrCZOFNatVpF+iR8laQnwAvBIRDwj6ZPABZJ6SHd0e550FtNbgZsi4hsb2fYPgFOAr0u6hNQ3cSbwRMV6D+TnkyQtJPVjLBniOowzSWc9fU/SvwLbks60ep7195Q2awh3ZltXinQ/5g+R6v8/It3u8y/zsn8DDiN1PP87KVl8hvTD6p4atv1D4GPAAcD3SHeO+yDp7mal690LnJX3e2uO4Y+G2OYPSNdojAcuJ91m80HgwMj3VTdrFN/hzszMqvIRhZmZVeVEYWZmVTlRmJlZVU4UZmZWlROFmZlV5URhZmZVOVGYmVlVThRmZlbVfwPV7q/ZHB12MgAAAABJRU5ErkJggg==\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "drug_encoding = 'Daylight'\n",
    "target_encoding = 'AAC'\n",
    "train, val, test = data_process(X_drug, X_target, y, \n",
    "                                drug_encoding, target_encoding, \n",
    "                                split_method='random',frac=[0.7,0.1,0.2], random_seed = 2)\n",
    "\n",
    "config = generate_config(drug_encoding = drug_encoding, \n",
    "                         target_encoding = target_encoding, \n",
    "                         cls_hidden_dims = [1024,1024,512], \n",
    "                         train_epoch = 100, \n",
    "                         LR = 0.001, \n",
    "                         batch_size = 256\n",
    "                        )\n",
    "model = models.model_initialize(**config)\n",
    "model.train(train, val, test)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "in total: 118254 drug-target pairs\n",
      "encoding drug...\n",
      "unique drugs: 2068\n",
      "drug encoding finished...\n",
      "encoding protein...\n",
      "unique target sequence: 229\n",
      "-- Encoding AAC takes time. Time Reference: 24s for ~100 sequences in a CPU. Calculate your time by the unique target sequence #, instead of the entire dataset.\n",
      "protein encoding finished...\n",
      "splitting dataset...\n",
      "Done.\n",
      "Let's use 1 GPU!\n",
      "--- Data Preparation ---\n",
      "--- Go for Training ---\n",
      "Training at Epoch 1 iteration 0 with loss 137.978. Total time 0.0 hours\n",
      "Training at Epoch 1 iteration 100 with loss 1.83130. Total time 0.00416 hours\n",
      "Training at Epoch 1 iteration 200 with loss 1.09212. Total time 0.00833 hours\n",
      "Training at Epoch 1 iteration 300 with loss 0.92527. Total time 0.01222 hours\n",
      "Validation at Epoch 1 , MSE: 0.49913 , Pearson Correlation: 0.54815 with p-value: 0.0 , Concordance Index: 0.72285\n",
      "Training at Epoch 2 iteration 0 with loss 1.02708. Total time 0.01527 hours\n",
      "Training at Epoch 2 iteration 100 with loss 0.78867. Total time 0.01944 hours\n",
      "Training at Epoch 2 iteration 200 with loss 0.80686. Total time 0.02333 hours\n",
      "Training at Epoch 2 iteration 300 with loss 0.78542. Total time 0.0275 hours\n",
      "Validation at Epoch 2 , MSE: 0.45297 , Pearson Correlation: 0.62356 with p-value: 0.0 , Concordance Index: 0.74810\n",
      "Training at Epoch 3 iteration 0 with loss 1.17640. Total time 0.03055 hours\n",
      "Training at Epoch 3 iteration 100 with loss 0.63580. Total time 0.03472 hours\n",
      "Training at Epoch 3 iteration 200 with loss 0.78471. Total time 0.03861 hours\n",
      "Training at Epoch 3 iteration 300 with loss 0.63781. Total time 0.0425 hours\n",
      "Validation at Epoch 3 , MSE: 0.44100 , Pearson Correlation: 0.65425 with p-value: 0.0 , Concordance Index: 0.75972\n",
      "Training at Epoch 4 iteration 0 with loss 0.62041. Total time 0.04583 hours\n",
      "Training at Epoch 4 iteration 100 with loss 0.58496. Total time 0.04972 hours\n",
      "Training at Epoch 4 iteration 200 with loss 0.79506. Total time 0.05388 hours\n",
      "Training at Epoch 4 iteration 300 with loss 0.69586. Total time 0.05777 hours\n",
      "Validation at Epoch 4 , MSE: 0.51796 , Pearson Correlation: 0.66171 with p-value: 0.0 , Concordance Index: 0.76725\n",
      "Training at Epoch 5 iteration 0 with loss 0.52565. Total time 0.06083 hours\n",
      "Training at Epoch 5 iteration 100 with loss 0.76439. Total time 0.065 hours\n",
      "Training at Epoch 5 iteration 200 with loss 0.48261. Total time 0.06888 hours\n",
      "Training at Epoch 5 iteration 300 with loss 0.56566. Total time 0.07305 hours\n",
      "Validation at Epoch 5 , MSE: 0.60436 , Pearson Correlation: 0.66897 with p-value: 0.0 , Concordance Index: 0.76621\n",
      "Training at Epoch 6 iteration 0 with loss 0.59375. Total time 0.07611 hours\n",
      "Training at Epoch 6 iteration 100 with loss 0.66898. Total time 0.08 hours\n",
      "Training at Epoch 6 iteration 200 with loss 0.55030. Total time 0.08416 hours\n",
      "Training at Epoch 6 iteration 300 with loss 0.59308. Total time 0.08805 hours\n",
      "Validation at Epoch 6 , MSE: 0.47745 , Pearson Correlation: 0.66928 with p-value: 0.0 , Concordance Index: 0.77063\n",
      "Training at Epoch 7 iteration 0 with loss 0.54442. Total time 0.09111 hours\n",
      "Training at Epoch 7 iteration 100 with loss 0.45686. Total time 0.09527 hours\n",
      "Training at Epoch 7 iteration 200 with loss 0.39385. Total time 0.09944 hours\n",
      "Training at Epoch 7 iteration 300 with loss 0.52491. Total time 0.10333 hours\n",
      "Validation at Epoch 7 , MSE: 0.58619 , Pearson Correlation: 0.67392 with p-value: 0.0 , Concordance Index: 0.77041\n",
      "Training at Epoch 8 iteration 0 with loss 0.56634. Total time 0.10638 hours\n",
      "Training at Epoch 8 iteration 100 with loss 0.58900. Total time 0.11055 hours\n",
      "Training at Epoch 8 iteration 200 with loss 0.60309. Total time 0.11444 hours\n",
      "Training at Epoch 8 iteration 300 with loss 0.57263. Total time 0.11861 hours\n",
      "Validation at Epoch 8 , MSE: 0.40545 , Pearson Correlation: 0.67922 with p-value: 0.0 , Concordance Index: 0.76980\n",
      "Training at Epoch 9 iteration 0 with loss 0.51137. Total time 0.12166 hours\n",
      "Training at Epoch 9 iteration 100 with loss 0.63190. Total time 0.12583 hours\n",
      "Training at Epoch 9 iteration 200 with loss 0.55625. Total time 0.12972 hours\n",
      "Training at Epoch 9 iteration 300 with loss 0.46851. Total time 0.13388 hours\n",
      "Validation at Epoch 9 , MSE: 0.47908 , Pearson Correlation: 0.67269 with p-value: 0.0 , Concordance Index: 0.77405\n",
      "Training at Epoch 10 iteration 0 with loss 0.58666. Total time 0.13694 hours\n",
      "Training at Epoch 10 iteration 100 with loss 0.79360. Total time 0.14111 hours\n",
      "Training at Epoch 10 iteration 200 with loss 0.53942. Total time 0.145 hours\n",
      "Training at Epoch 10 iteration 300 with loss 0.77107. Total time 0.14888 hours\n",
      "Validation at Epoch 10 , MSE: 0.38772 , Pearson Correlation: 0.68621 with p-value: 0.0 , Concordance Index: 0.78088\n",
      "Training at Epoch 11 iteration 0 with loss 0.56182. Total time 0.15194 hours\n",
      "Training at Epoch 11 iteration 100 with loss 0.45237. Total time 0.15611 hours\n",
      "Training at Epoch 11 iteration 200 with loss 0.50692. Total time 0.16027 hours\n",
      "Training at Epoch 11 iteration 300 with loss 0.37026. Total time 0.16416 hours\n",
      "Validation at Epoch 11 , MSE: 0.65871 , Pearson Correlation: 0.70028 with p-value: 0.0 , Concordance Index: 0.78392\n",
      "Training at Epoch 12 iteration 0 with loss 0.70533. Total time 0.16722 hours\n",
      "Training at Epoch 12 iteration 100 with loss 0.49854. Total time 0.17138 hours\n",
      "Training at Epoch 12 iteration 200 with loss 0.48124. Total time 0.17555 hours\n",
      "Training at Epoch 12 iteration 300 with loss 0.44759. Total time 0.17944 hours\n",
      "Validation at Epoch 12 , MSE: 0.81301 , Pearson Correlation: 0.70503 with p-value: 0.0 , Concordance Index: 0.78026\n",
      "Training at Epoch 13 iteration 0 with loss 0.53329. Total time 0.1825 hours\n",
      "Training at Epoch 13 iteration 100 with loss 0.47768. Total time 0.18666 hours\n",
      "Training at Epoch 13 iteration 200 with loss 0.57828. Total time 0.19083 hours\n",
      "Training at Epoch 13 iteration 300 with loss 0.55843. Total time 0.19472 hours\n",
      "Validation at Epoch 13 , MSE: 0.35268 , Pearson Correlation: 0.71228 with p-value: 0.0 , Concordance Index: 0.78008\n",
      "Training at Epoch 14 iteration 0 with loss 0.60151. Total time 0.19777 hours\n",
      "Training at Epoch 14 iteration 100 with loss 0.51237. Total time 0.20194 hours\n",
      "Training at Epoch 14 iteration 200 with loss 0.58551. Total time 0.20583 hours\n",
      "Training at Epoch 14 iteration 300 with loss 0.54590. Total time 0.21 hours\n",
      "Validation at Epoch 14 , MSE: 0.60103 , Pearson Correlation: 0.73479 with p-value: 0.0 , Concordance Index: 0.79337\n",
      "Training at Epoch 15 iteration 0 with loss 0.50174. Total time 0.21305 hours\n",
      "Training at Epoch 15 iteration 100 with loss 0.45261. Total time 0.21694 hours\n",
      "Training at Epoch 15 iteration 200 with loss 0.49319. Total time 0.22111 hours\n",
      "Training at Epoch 15 iteration 300 with loss 0.55105. Total time 0.225 hours\n",
      "Validation at Epoch 15 , MSE: 0.40926 , Pearson Correlation: 0.72329 with p-value: 0.0 , Concordance Index: 0.78236\n",
      "Training at Epoch 16 iteration 0 with loss 0.50927. Total time 0.22805 hours\n",
      "Training at Epoch 16 iteration 100 with loss 0.52126. Total time 0.23222 hours\n",
      "Training at Epoch 16 iteration 200 with loss 0.35340. Total time 0.23638 hours\n",
      "Training at Epoch 16 iteration 300 with loss 0.42647. Total time 0.24027 hours\n",
      "Validation at Epoch 16 , MSE: 0.44856 , Pearson Correlation: 0.73312 with p-value: 0.0 , Concordance Index: 0.78131\n",
      "Training at Epoch 17 iteration 0 with loss 0.31533. Total time 0.24333 hours\n",
      "Training at Epoch 17 iteration 100 with loss 0.41691. Total time 0.2475 hours\n",
      "Training at Epoch 17 iteration 200 with loss 0.34755. Total time 0.25138 hours\n",
      "Training at Epoch 17 iteration 300 with loss 0.36802. Total time 0.25555 hours\n",
      "Validation at Epoch 17 , MSE: 0.86051 , Pearson Correlation: 0.74362 with p-value: 0.0 , Concordance Index: 0.79685\n",
      "Training at Epoch 18 iteration 0 with loss 0.64822. Total time 0.25861 hours\n",
      "Training at Epoch 18 iteration 100 with loss 0.46748. Total time 0.26277 hours\n",
      "Training at Epoch 18 iteration 200 with loss 0.47355. Total time 0.26666 hours\n",
      "Training at Epoch 18 iteration 300 with loss 0.48854. Total time 0.27083 hours\n",
      "Validation at Epoch 18 , MSE: 0.31897 , Pearson Correlation: 0.74730 with p-value: 0.0 , Concordance Index: 0.79651\n",
      "Training at Epoch 19 iteration 0 with loss 0.51619. Total time 0.27388 hours\n",
      "Training at Epoch 19 iteration 100 with loss 0.52467. Total time 0.27777 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 19 iteration 200 with loss 0.58762. Total time 0.28194 hours\n",
      "Training at Epoch 19 iteration 300 with loss 0.41850. Total time 0.28583 hours\n",
      "Validation at Epoch 19 , MSE: 0.65377 , Pearson Correlation: 0.74941 with p-value: 0.0 , Concordance Index: 0.80228\n",
      "Training at Epoch 20 iteration 0 with loss 0.41486. Total time 0.28888 hours\n",
      "Training at Epoch 20 iteration 100 with loss 0.41245. Total time 0.29305 hours\n",
      "Training at Epoch 20 iteration 200 with loss 0.43889. Total time 0.29722 hours\n",
      "Training at Epoch 20 iteration 300 with loss 0.48843. Total time 0.30111 hours\n",
      "Validation at Epoch 20 , MSE: 0.58515 , Pearson Correlation: 0.74808 with p-value: 0.0 , Concordance Index: 0.79426\n",
      "Training at Epoch 21 iteration 0 with loss 0.43672. Total time 0.30416 hours\n",
      "Training at Epoch 21 iteration 100 with loss 0.35723. Total time 0.30833 hours\n",
      "Training at Epoch 21 iteration 200 with loss 0.32928. Total time 0.3125 hours\n",
      "Training at Epoch 21 iteration 300 with loss 0.45011. Total time 0.31638 hours\n",
      "Validation at Epoch 21 , MSE: 0.37587 , Pearson Correlation: 0.75384 with p-value: 0.0 , Concordance Index: 0.80103\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 20 Testing MSE: 0.47102306382501596 , Pearson Correlation: 0.6433780867844052 with p-value: 0.0 , Concordance Index: 0.7203099824050101\n",
      "Training at Epoch 22 iteration 0 with loss 0.45563. Total time 0.32361 hours\n",
      "Training at Epoch 22 iteration 100 with loss 0.41941. Total time 0.32777 hours\n",
      "Training at Epoch 22 iteration 200 with loss 0.41707. Total time 0.33166 hours\n",
      "Training at Epoch 22 iteration 300 with loss 0.39851. Total time 0.33583 hours\n",
      "Validation at Epoch 22 , MSE: 0.49355 , Pearson Correlation: 0.75330 with p-value: 0.0 , Concordance Index: 0.80053\n",
      "Training at Epoch 23 iteration 0 with loss 0.39279. Total time 0.33888 hours\n",
      "Training at Epoch 23 iteration 100 with loss 0.41000. Total time 0.34305 hours\n",
      "Training at Epoch 23 iteration 200 with loss 0.41282. Total time 0.34694 hours\n",
      "Training at Epoch 23 iteration 300 with loss 0.44929. Total time 0.35111 hours\n",
      "Validation at Epoch 23 , MSE: 0.56883 , Pearson Correlation: 0.76005 with p-value: 0.0 , Concordance Index: 0.80748\n",
      "Training at Epoch 24 iteration 0 with loss 0.48033. Total time 0.35416 hours\n",
      "Training at Epoch 24 iteration 100 with loss 0.40470. Total time 0.35833 hours\n",
      "Training at Epoch 24 iteration 200 with loss 0.31061. Total time 0.36222 hours\n",
      "Training at Epoch 24 iteration 300 with loss 0.32330. Total time 0.36638 hours\n",
      "Validation at Epoch 24 , MSE: 0.62603 , Pearson Correlation: 0.74751 with p-value: 0.0 , Concordance Index: 0.79573\n",
      "Training at Epoch 25 iteration 0 with loss 0.40986. Total time 0.36944 hours\n",
      "Training at Epoch 25 iteration 100 with loss 0.54916. Total time 0.37333 hours\n",
      "Training at Epoch 25 iteration 200 with loss 0.69085. Total time 0.3775 hours\n",
      "Training at Epoch 25 iteration 300 with loss 0.36479. Total time 0.38138 hours\n",
      "Validation at Epoch 25 , MSE: 0.57357 , Pearson Correlation: 0.75362 with p-value: 0.0 , Concordance Index: 0.79422\n",
      "Training at Epoch 26 iteration 0 with loss 0.30749. Total time 0.38444 hours\n",
      "Training at Epoch 26 iteration 100 with loss 0.43374. Total time 0.38861 hours\n",
      "Training at Epoch 26 iteration 200 with loss 0.44822. Total time 0.39277 hours\n",
      "Training at Epoch 26 iteration 300 with loss 0.54719. Total time 0.39666 hours\n",
      "Validation at Epoch 26 , MSE: 0.84128 , Pearson Correlation: 0.76152 with p-value: 0.0 , Concordance Index: 0.80610\n",
      "Training at Epoch 27 iteration 0 with loss 0.39332. Total time 0.39972 hours\n",
      "Training at Epoch 27 iteration 100 with loss 0.40713. Total time 0.40388 hours\n",
      "Training at Epoch 27 iteration 200 with loss 0.37535. Total time 0.40805 hours\n",
      "Training at Epoch 27 iteration 300 with loss 0.36458. Total time 0.41194 hours\n",
      "Validation at Epoch 27 , MSE: 0.86503 , Pearson Correlation: 0.75141 with p-value: 0.0 , Concordance Index: 0.78908\n",
      "Training at Epoch 28 iteration 0 with loss 0.57618. Total time 0.415 hours\n",
      "Training at Epoch 28 iteration 100 with loss 0.32886. Total time 0.41916 hours\n",
      "Training at Epoch 28 iteration 200 with loss 0.45682. Total time 0.42333 hours\n",
      "Training at Epoch 28 iteration 300 with loss 0.46972. Total time 0.42722 hours\n",
      "Validation at Epoch 28 , MSE: 0.74539 , Pearson Correlation: 0.75478 with p-value: 0.0 , Concordance Index: 0.79494\n",
      "Training at Epoch 29 iteration 0 with loss 0.44565. Total time 0.43027 hours\n",
      "Training at Epoch 29 iteration 100 with loss 0.35838. Total time 0.43444 hours\n",
      "Training at Epoch 29 iteration 200 with loss 0.38313. Total time 0.43861 hours\n",
      "Training at Epoch 29 iteration 300 with loss 0.42619. Total time 0.4425 hours\n",
      "Validation at Epoch 29 , MSE: 0.36061 , Pearson Correlation: 0.75230 with p-value: 0.0 , Concordance Index: 0.79975\n",
      "Training at Epoch 30 iteration 0 with loss 0.36072. Total time 0.44555 hours\n",
      "Training at Epoch 30 iteration 100 with loss 0.32513. Total time 0.44972 hours\n",
      "Training at Epoch 30 iteration 200 with loss 0.35313. Total time 0.45388 hours\n",
      "Training at Epoch 30 iteration 300 with loss 0.31818. Total time 0.45777 hours\n",
      "Validation at Epoch 30 , MSE: 0.43629 , Pearson Correlation: 0.77312 with p-value: 0.0 , Concordance Index: 0.80772\n",
      "Training at Epoch 31 iteration 0 with loss 0.37853. Total time 0.46083 hours\n",
      "Training at Epoch 31 iteration 100 with loss 0.36968. Total time 0.465 hours\n",
      "Training at Epoch 31 iteration 200 with loss 0.41357. Total time 0.46888 hours\n",
      "Training at Epoch 31 iteration 300 with loss 0.47534. Total time 0.47305 hours\n",
      "Validation at Epoch 31 , MSE: 0.36217 , Pearson Correlation: 0.76347 with p-value: 0.0 , Concordance Index: 0.80754\n",
      "Training at Epoch 32 iteration 0 with loss 0.36490. Total time 0.47611 hours\n",
      "Training at Epoch 32 iteration 100 with loss 0.37913. Total time 0.48027 hours\n",
      "Training at Epoch 32 iteration 200 with loss 0.41435. Total time 0.48416 hours\n",
      "Training at Epoch 32 iteration 300 with loss 0.24944. Total time 0.48833 hours\n",
      "Validation at Epoch 32 , MSE: 0.32133 , Pearson Correlation: 0.77124 with p-value: 0.0 , Concordance Index: 0.80978\n",
      "Training at Epoch 33 iteration 0 with loss 0.32861. Total time 0.49138 hours\n",
      "Training at Epoch 33 iteration 100 with loss 0.34725. Total time 0.49527 hours\n",
      "Training at Epoch 33 iteration 200 with loss 0.35812. Total time 0.49944 hours\n",
      "Training at Epoch 33 iteration 300 with loss 0.28203. Total time 0.50361 hours\n",
      "Validation at Epoch 33 , MSE: 0.31251 , Pearson Correlation: 0.77310 with p-value: 0.0 , Concordance Index: 0.80550\n",
      "Training at Epoch 34 iteration 0 with loss 0.46719. Total time 0.50666 hours\n",
      "Training at Epoch 34 iteration 100 with loss 0.44521. Total time 0.51055 hours\n",
      "Training at Epoch 34 iteration 200 with loss 0.31808. Total time 0.51472 hours\n",
      "Training at Epoch 34 iteration 300 with loss 0.33051. Total time 0.51861 hours\n",
      "Validation at Epoch 34 , MSE: 0.31217 , Pearson Correlation: 0.76956 with p-value: 0.0 , Concordance Index: 0.80164\n",
      "Training at Epoch 35 iteration 0 with loss 0.45648. Total time 0.52194 hours\n",
      "Training at Epoch 35 iteration 100 with loss 0.37996. Total time 0.52583 hours\n",
      "Training at Epoch 35 iteration 200 with loss 0.40524. Total time 0.53 hours\n",
      "Training at Epoch 35 iteration 300 with loss 0.33357. Total time 0.53388 hours\n",
      "Validation at Epoch 35 , MSE: 0.28192 , Pearson Correlation: 0.77651 with p-value: 0.0 , Concordance Index: 0.80934\n",
      "Training at Epoch 36 iteration 0 with loss 0.36458. Total time 0.53694 hours\n",
      "Training at Epoch 36 iteration 100 with loss 0.41130. Total time 0.54111 hours\n",
      "Training at Epoch 36 iteration 200 with loss 0.31509. Total time 0.54527 hours\n",
      "Training at Epoch 36 iteration 300 with loss 0.30950. Total time 0.54916 hours\n",
      "Validation at Epoch 36 , MSE: 0.28187 , Pearson Correlation: 0.78228 with p-value: 0.0 , Concordance Index: 0.81466\n",
      "Training at Epoch 37 iteration 0 with loss 0.40084. Total time 0.55222 hours\n",
      "Training at Epoch 37 iteration 100 with loss 0.40574. Total time 0.55638 hours\n",
      "Training at Epoch 37 iteration 200 with loss 0.28850. Total time 0.56055 hours\n",
      "Training at Epoch 37 iteration 300 with loss 0.37853. Total time 0.56444 hours\n",
      "Validation at Epoch 37 , MSE: 0.27999 , Pearson Correlation: 0.77823 with p-value: 0.0 , Concordance Index: 0.81246\n",
      "Training at Epoch 38 iteration 0 with loss 0.29529. Total time 0.5675 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 38 iteration 100 with loss 0.38383. Total time 0.57166 hours\n",
      "Training at Epoch 38 iteration 200 with loss 0.34187. Total time 0.57583 hours\n",
      "Training at Epoch 38 iteration 300 with loss 0.41401. Total time 0.57972 hours\n",
      "Validation at Epoch 38 , MSE: 0.32324 , Pearson Correlation: 0.78219 with p-value: 0.0 , Concordance Index: 0.81688\n",
      "Training at Epoch 39 iteration 0 with loss 0.30005. Total time 0.58277 hours\n",
      "Training at Epoch 39 iteration 100 with loss 0.25911. Total time 0.58694 hours\n",
      "Training at Epoch 39 iteration 200 with loss 0.26822. Total time 0.59083 hours\n",
      "Training at Epoch 39 iteration 300 with loss 0.28065. Total time 0.595 hours\n",
      "Validation at Epoch 39 , MSE: 0.27569 , Pearson Correlation: 0.78887 with p-value: 0.0 , Concordance Index: 0.81798\n",
      "Training at Epoch 40 iteration 0 with loss 0.39713. Total time 0.59805 hours\n",
      "Training at Epoch 40 iteration 100 with loss 0.40391. Total time 0.60222 hours\n",
      "Training at Epoch 40 iteration 200 with loss 0.23646. Total time 0.60611 hours\n",
      "Training at Epoch 40 iteration 300 with loss 0.40315. Total time 0.61027 hours\n",
      "Validation at Epoch 40 , MSE: 0.28188 , Pearson Correlation: 0.78194 with p-value: 0.0 , Concordance Index: 0.81227\n",
      "Training at Epoch 41 iteration 0 with loss 0.37652. Total time 0.61333 hours\n",
      "Training at Epoch 41 iteration 100 with loss 0.34146. Total time 0.6175 hours\n",
      "Training at Epoch 41 iteration 200 with loss 0.32262. Total time 0.62138 hours\n",
      "Training at Epoch 41 iteration 300 with loss 0.24687. Total time 0.62555 hours\n",
      "Validation at Epoch 41 , MSE: 0.30005 , Pearson Correlation: 0.79222 with p-value: 0.0 , Concordance Index: 0.81754\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 40 Testing MSE: 0.3529360146917517 , Pearson Correlation: 0.7250732492528558 with p-value: 0.0 , Concordance Index: 0.7562474974850418\n",
      "Training at Epoch 42 iteration 0 with loss 0.33267. Total time 0.63277 hours\n",
      "Training at Epoch 42 iteration 100 with loss 0.41026. Total time 0.63666 hours\n",
      "Training at Epoch 42 iteration 200 with loss 0.31317. Total time 0.64083 hours\n",
      "Training at Epoch 42 iteration 300 with loss 0.30145. Total time 0.64472 hours\n",
      "Validation at Epoch 42 , MSE: 0.30676 , Pearson Correlation: 0.77987 with p-value: 0.0 , Concordance Index: 0.80526\n",
      "Training at Epoch 43 iteration 0 with loss 0.29324. Total time 0.64777 hours\n",
      "Training at Epoch 43 iteration 100 with loss 0.35650. Total time 0.65194 hours\n",
      "Training at Epoch 43 iteration 200 with loss 0.33353. Total time 0.65611 hours\n",
      "Training at Epoch 43 iteration 300 with loss 0.33745. Total time 0.66 hours\n",
      "Validation at Epoch 43 , MSE: 0.28296 , Pearson Correlation: 0.79692 with p-value: 0.0 , Concordance Index: 0.82070\n",
      "Training at Epoch 44 iteration 0 with loss 0.36388. Total time 0.66305 hours\n",
      "Training at Epoch 44 iteration 100 with loss 0.27943. Total time 0.66722 hours\n",
      "Training at Epoch 44 iteration 200 with loss 0.28528. Total time 0.67111 hours\n",
      "Training at Epoch 44 iteration 300 with loss 0.36120. Total time 0.67527 hours\n",
      "Validation at Epoch 44 , MSE: 0.28388 , Pearson Correlation: 0.79956 with p-value: 0.0 , Concordance Index: 0.82304\n",
      "Training at Epoch 45 iteration 0 with loss 0.37166. Total time 0.67833 hours\n",
      "Training at Epoch 45 iteration 100 with loss 0.31232. Total time 0.6825 hours\n",
      "Training at Epoch 45 iteration 200 with loss 0.38234. Total time 0.68666 hours\n",
      "Training at Epoch 45 iteration 300 with loss 0.48884. Total time 0.69055 hours\n",
      "Validation at Epoch 45 , MSE: 0.24997 , Pearson Correlation: 0.81118 with p-value: 0.0 , Concordance Index: 0.82962\n",
      "Training at Epoch 46 iteration 0 with loss 0.25391. Total time 0.69388 hours\n",
      "Training at Epoch 46 iteration 100 with loss 0.30652. Total time 0.69805 hours\n",
      "Training at Epoch 46 iteration 200 with loss 0.27743. Total time 0.70194 hours\n",
      "Training at Epoch 46 iteration 300 with loss 0.34081. Total time 0.70611 hours\n",
      "Validation at Epoch 46 , MSE: 0.25527 , Pearson Correlation: 0.80289 with p-value: 0.0 , Concordance Index: 0.82549\n",
      "Training at Epoch 47 iteration 0 with loss 0.29926. Total time 0.70916 hours\n",
      "Training at Epoch 47 iteration 100 with loss 0.22704. Total time 0.71333 hours\n",
      "Training at Epoch 47 iteration 200 with loss 0.25636. Total time 0.71722 hours\n",
      "Training at Epoch 47 iteration 300 with loss 0.27234. Total time 0.72138 hours\n",
      "Validation at Epoch 47 , MSE: 0.25264 , Pearson Correlation: 0.80565 with p-value: 0.0 , Concordance Index: 0.82883\n",
      "Training at Epoch 48 iteration 0 with loss 0.23986. Total time 0.72444 hours\n",
      "Training at Epoch 48 iteration 100 with loss 0.36433. Total time 0.72861 hours\n",
      "Training at Epoch 48 iteration 200 with loss 0.33252. Total time 0.73277 hours\n",
      "Training at Epoch 48 iteration 300 with loss 0.34094. Total time 0.73666 hours\n",
      "Validation at Epoch 48 , MSE: 0.25890 , Pearson Correlation: 0.79892 with p-value: 0.0 , Concordance Index: 0.82199\n",
      "Training at Epoch 49 iteration 0 with loss 0.33275. Total time 0.73972 hours\n",
      "Training at Epoch 49 iteration 100 with loss 0.65333. Total time 0.74388 hours\n",
      "Training at Epoch 49 iteration 200 with loss 0.29961. Total time 0.74805 hours\n",
      "Training at Epoch 49 iteration 300 with loss 0.29004. Total time 0.75194 hours\n",
      "Validation at Epoch 49 , MSE: 0.26132 , Pearson Correlation: 0.80713 with p-value: 0.0 , Concordance Index: 0.83177\n",
      "Training at Epoch 50 iteration 0 with loss 0.23177. Total time 0.755 hours\n",
      "Training at Epoch 50 iteration 100 with loss 0.26826. Total time 0.75916 hours\n",
      "Training at Epoch 50 iteration 200 with loss 0.29518. Total time 0.76333 hours\n",
      "Training at Epoch 50 iteration 300 with loss 0.33502. Total time 0.76722 hours\n",
      "Validation at Epoch 50 , MSE: 0.24277 , Pearson Correlation: 0.81200 with p-value: 0.0 , Concordance Index: 0.82686\n",
      "Training at Epoch 51 iteration 0 with loss 0.22498. Total time 0.77055 hours\n",
      "Training at Epoch 51 iteration 100 with loss 0.21616. Total time 0.77444 hours\n",
      "Training at Epoch 51 iteration 200 with loss 0.24956. Total time 0.77861 hours\n",
      "Training at Epoch 51 iteration 300 with loss 0.31275. Total time 0.78277 hours\n",
      "Validation at Epoch 51 , MSE: 0.24028 , Pearson Correlation: 0.81436 with p-value: 0.0 , Concordance Index: 0.83191\n",
      "Training at Epoch 52 iteration 0 with loss 0.26559. Total time 0.78583 hours\n",
      "Training at Epoch 52 iteration 100 with loss 0.25772. Total time 0.78972 hours\n",
      "Training at Epoch 52 iteration 200 with loss 0.36706. Total time 0.79388 hours\n",
      "Training at Epoch 52 iteration 300 with loss 0.23676. Total time 0.79805 hours\n",
      "Validation at Epoch 52 , MSE: 0.25158 , Pearson Correlation: 0.80685 with p-value: 0.0 , Concordance Index: 0.83176\n",
      "Training at Epoch 53 iteration 0 with loss 0.28721. Total time 0.80111 hours\n",
      "Training at Epoch 53 iteration 100 with loss 0.20429. Total time 0.80527 hours\n",
      "Training at Epoch 53 iteration 200 with loss 0.32829. Total time 0.80916 hours\n",
      "Training at Epoch 53 iteration 300 with loss 0.24974. Total time 0.81333 hours\n",
      "Validation at Epoch 53 , MSE: 0.23516 , Pearson Correlation: 0.81798 with p-value: 0.0 , Concordance Index: 0.83170\n",
      "Training at Epoch 54 iteration 0 with loss 0.22845. Total time 0.81638 hours\n",
      "Training at Epoch 54 iteration 100 with loss 0.28321. Total time 0.82055 hours\n",
      "Training at Epoch 54 iteration 200 with loss 0.31326. Total time 0.82444 hours\n",
      "Training at Epoch 54 iteration 300 with loss 0.23001. Total time 0.82861 hours\n",
      "Validation at Epoch 54 , MSE: 0.23857 , Pearson Correlation: 0.81485 with p-value: 0.0 , Concordance Index: 0.83140\n",
      "Training at Epoch 55 iteration 0 with loss 0.20931. Total time 0.83166 hours\n",
      "Training at Epoch 55 iteration 100 with loss 0.25381. Total time 0.83583 hours\n",
      "Training at Epoch 55 iteration 200 with loss 0.37644. Total time 0.84 hours\n",
      "Training at Epoch 55 iteration 300 with loss 0.26083. Total time 0.84388 hours\n",
      "Validation at Epoch 55 , MSE: 0.23719 , Pearson Correlation: 0.81844 with p-value: 0.0 , Concordance Index: 0.83330\n",
      "Training at Epoch 56 iteration 0 with loss 0.24571. Total time 0.84722 hours\n",
      "Training at Epoch 56 iteration 100 with loss 0.32850. Total time 0.85111 hours\n",
      "Training at Epoch 56 iteration 200 with loss 0.28674. Total time 0.85527 hours\n",
      "Training at Epoch 56 iteration 300 with loss 0.20646. Total time 0.85944 hours\n",
      "Validation at Epoch 56 , MSE: 0.23247 , Pearson Correlation: 0.82016 with p-value: 0.0 , Concordance Index: 0.83277\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 57 iteration 0 with loss 0.24167. Total time 0.8625 hours\n",
      "Training at Epoch 57 iteration 100 with loss 0.25967. Total time 0.86666 hours\n",
      "Training at Epoch 57 iteration 200 with loss 0.26445. Total time 0.87083 hours\n",
      "Training at Epoch 57 iteration 300 with loss 0.26142. Total time 0.87472 hours\n",
      "Validation at Epoch 57 , MSE: 0.23807 , Pearson Correlation: 0.81644 with p-value: 0.0 , Concordance Index: 0.83149\n",
      "Training at Epoch 58 iteration 0 with loss 0.21094. Total time 0.87777 hours\n",
      "Training at Epoch 58 iteration 100 with loss 0.22627. Total time 0.88194 hours\n",
      "Training at Epoch 58 iteration 200 with loss 0.25805. Total time 0.88611 hours\n",
      "Training at Epoch 58 iteration 300 with loss 0.23676. Total time 0.89 hours\n",
      "Validation at Epoch 58 , MSE: 0.23081 , Pearson Correlation: 0.82363 with p-value: 0.0 , Concordance Index: 0.83295\n",
      "Training at Epoch 59 iteration 0 with loss 0.25705. Total time 0.89333 hours\n",
      "Training at Epoch 59 iteration 100 with loss 0.18554. Total time 0.89722 hours\n",
      "Training at Epoch 59 iteration 200 with loss 0.26141. Total time 0.90138 hours\n",
      "Training at Epoch 59 iteration 300 with loss 0.23702. Total time 0.90555 hours\n",
      "Validation at Epoch 59 , MSE: 0.23517 , Pearson Correlation: 0.81858 with p-value: 0.0 , Concordance Index: 0.83937\n",
      "Training at Epoch 60 iteration 0 with loss 0.23930. Total time 0.90861 hours\n",
      "Training at Epoch 60 iteration 100 with loss 0.31282. Total time 0.91277 hours\n",
      "Training at Epoch 60 iteration 200 with loss 0.23605. Total time 0.91694 hours\n",
      "Training at Epoch 60 iteration 300 with loss 0.21226. Total time 0.92083 hours\n",
      "Validation at Epoch 60 , MSE: 0.22690 , Pearson Correlation: 0.82562 with p-value: 0.0 , Concordance Index: 0.83959\n",
      "Training at Epoch 61 iteration 0 with loss 0.26269. Total time 0.92388 hours\n",
      "Training at Epoch 61 iteration 100 with loss 0.22659. Total time 0.92805 hours\n",
      "Training at Epoch 61 iteration 200 with loss 0.22943. Total time 0.93222 hours\n",
      "Training at Epoch 61 iteration 300 with loss 0.28344. Total time 0.93611 hours\n",
      "Validation at Epoch 61 , MSE: 0.22809 , Pearson Correlation: 0.82386 with p-value: 0.0 , Concordance Index: 0.83819\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 60 Testing MSE: 0.28725083169708476 , Pearson Correlation: 0.7703858572883546 with p-value: 0.0 , Concordance Index: 0.7802853348191283\n",
      "Training at Epoch 62 iteration 0 with loss 0.25986. Total time 0.94333 hours\n",
      "Training at Epoch 62 iteration 100 with loss 0.33402. Total time 0.9475 hours\n",
      "Training at Epoch 62 iteration 200 with loss 0.31408. Total time 0.95138 hours\n",
      "Training at Epoch 62 iteration 300 with loss 0.32279. Total time 0.95555 hours\n",
      "Validation at Epoch 62 , MSE: 0.23511 , Pearson Correlation: 0.82904 with p-value: 0.0 , Concordance Index: 0.84119\n",
      "Training at Epoch 63 iteration 0 with loss 0.31941. Total time 0.95861 hours\n",
      "Training at Epoch 63 iteration 100 with loss 0.27165. Total time 0.96277 hours\n",
      "Training at Epoch 63 iteration 200 with loss 0.20015. Total time 0.96666 hours\n",
      "Training at Epoch 63 iteration 300 with loss 0.26323. Total time 0.97083 hours\n",
      "Validation at Epoch 63 , MSE: 0.22391 , Pearson Correlation: 0.82961 with p-value: 0.0 , Concordance Index: 0.83895\n",
      "Training at Epoch 64 iteration 0 with loss 0.20970. Total time 0.97388 hours\n",
      "Training at Epoch 64 iteration 100 with loss 0.27389. Total time 0.97805 hours\n",
      "Training at Epoch 64 iteration 200 with loss 0.24123. Total time 0.98222 hours\n",
      "Training at Epoch 64 iteration 300 with loss 0.22338. Total time 0.98638 hours\n",
      "Validation at Epoch 64 , MSE: 0.22475 , Pearson Correlation: 0.83398 with p-value: 0.0 , Concordance Index: 0.84144\n",
      "Training at Epoch 65 iteration 0 with loss 0.25449. Total time 0.98944 hours\n",
      "Training at Epoch 65 iteration 100 with loss 0.18379. Total time 0.99388 hours\n",
      "Training at Epoch 65 iteration 200 with loss 0.35189. Total time 0.99805 hours\n",
      "Training at Epoch 65 iteration 300 with loss 0.20590. Total time 1.00222 hours\n",
      "Validation at Epoch 65 , MSE: 0.22349 , Pearson Correlation: 0.82856 with p-value: 0.0 , Concordance Index: 0.83526\n",
      "Training at Epoch 66 iteration 0 with loss 0.31226. Total time 1.00527 hours\n",
      "Training at Epoch 66 iteration 100 with loss 0.33217. Total time 1.00972 hours\n",
      "Training at Epoch 66 iteration 200 with loss 0.23193. Total time 1.01388 hours\n",
      "Training at Epoch 66 iteration 300 with loss 0.27241. Total time 1.01805 hours\n",
      "Validation at Epoch 66 , MSE: 0.21765 , Pearson Correlation: 0.83273 with p-value: 0.0 , Concordance Index: 0.84101\n",
      "Training at Epoch 67 iteration 0 with loss 0.20311. Total time 1.02111 hours\n",
      "Training at Epoch 67 iteration 100 with loss 0.20717. Total time 1.02555 hours\n",
      "Training at Epoch 67 iteration 200 with loss 0.22451. Total time 1.02972 hours\n",
      "Training at Epoch 67 iteration 300 with loss 0.25851. Total time 1.03416 hours\n",
      "Validation at Epoch 67 , MSE: 0.23288 , Pearson Correlation: 0.82808 with p-value: 0.0 , Concordance Index: 0.83926\n",
      "Training at Epoch 68 iteration 0 with loss 0.23640. Total time 1.03722 hours\n",
      "Training at Epoch 68 iteration 100 with loss 0.23676. Total time 1.04138 hours\n",
      "Training at Epoch 68 iteration 200 with loss 0.20029. Total time 1.04583 hours\n",
      "Training at Epoch 68 iteration 300 with loss 0.32899. Total time 1.05 hours\n",
      "Validation at Epoch 68 , MSE: 0.21475 , Pearson Correlation: 0.83713 with p-value: 0.0 , Concordance Index: 0.84241\n",
      "Training at Epoch 69 iteration 0 with loss 0.21024. Total time 1.05305 hours\n",
      "Training at Epoch 69 iteration 100 with loss 0.20452. Total time 1.0575 hours\n",
      "Training at Epoch 69 iteration 200 with loss 0.24003. Total time 1.06166 hours\n",
      "Training at Epoch 69 iteration 300 with loss 0.24087. Total time 1.06583 hours\n",
      "Validation at Epoch 69 , MSE: 0.22018 , Pearson Correlation: 0.83255 with p-value: 0.0 , Concordance Index: 0.84140\n",
      "Training at Epoch 70 iteration 0 with loss 0.19634. Total time 1.06916 hours\n",
      "Training at Epoch 70 iteration 100 with loss 0.29914. Total time 1.07333 hours\n",
      "Training at Epoch 70 iteration 200 with loss 0.27463. Total time 1.0775 hours\n",
      "Training at Epoch 70 iteration 300 with loss 0.22281. Total time 1.08166 hours\n",
      "Validation at Epoch 70 , MSE: 0.21817 , Pearson Correlation: 0.83352 with p-value: 0.0 , Concordance Index: 0.84197\n",
      "Training at Epoch 71 iteration 0 with loss 0.23982. Total time 1.085 hours\n",
      "Training at Epoch 71 iteration 100 with loss 0.26257. Total time 1.08916 hours\n",
      "Training at Epoch 71 iteration 200 with loss 0.26017. Total time 1.09333 hours\n",
      "Training at Epoch 71 iteration 300 with loss 0.25111. Total time 1.0975 hours\n",
      "Validation at Epoch 71 , MSE: 0.21468 , Pearson Correlation: 0.83539 with p-value: 0.0 , Concordance Index: 0.84172\n",
      "Training at Epoch 72 iteration 0 with loss 0.22701. Total time 1.10083 hours\n",
      "Training at Epoch 72 iteration 100 with loss 0.19812. Total time 1.105 hours\n",
      "Training at Epoch 72 iteration 200 with loss 0.29555. Total time 1.10916 hours\n",
      "Training at Epoch 72 iteration 300 with loss 0.26174. Total time 1.11333 hours\n",
      "Validation at Epoch 72 , MSE: 0.22288 , Pearson Correlation: 0.83691 with p-value: 0.0 , Concordance Index: 0.84435\n",
      "Training at Epoch 73 iteration 0 with loss 0.21155. Total time 1.11666 hours\n",
      "Training at Epoch 73 iteration 100 with loss 0.27163. Total time 1.12083 hours\n",
      "Training at Epoch 73 iteration 200 with loss 0.20151. Total time 1.125 hours\n",
      "Training at Epoch 73 iteration 300 with loss 0.18724. Total time 1.12916 hours\n",
      "Validation at Epoch 73 , MSE: 0.21802 , Pearson Correlation: 0.83926 with p-value: 0.0 , Concordance Index: 0.84505\n",
      "Training at Epoch 74 iteration 0 with loss 0.20481. Total time 1.13222 hours\n",
      "Training at Epoch 74 iteration 100 with loss 0.21633. Total time 1.13638 hours\n",
      "Training at Epoch 74 iteration 200 with loss 0.18599. Total time 1.14055 hours\n",
      "Training at Epoch 74 iteration 300 with loss 0.19838. Total time 1.14444 hours\n",
      "Validation at Epoch 74 , MSE: 0.21585 , Pearson Correlation: 0.83412 with p-value: 0.0 , Concordance Index: 0.84463\n",
      "Training at Epoch 75 iteration 0 with loss 0.20439. Total time 1.1475 hours\n",
      "Training at Epoch 75 iteration 100 with loss 0.26390. Total time 1.15166 hours\n",
      "Training at Epoch 75 iteration 200 with loss 0.28906. Total time 1.15583 hours\n",
      "Training at Epoch 75 iteration 300 with loss 0.25050. Total time 1.15972 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Validation at Epoch 75 , MSE: 0.22037 , Pearson Correlation: 0.83069 with p-value: 0.0 , Concordance Index: 0.84200\n",
      "Training at Epoch 76 iteration 0 with loss 0.29782. Total time 1.16277 hours\n",
      "Training at Epoch 76 iteration 100 with loss 0.21317. Total time 1.16722 hours\n",
      "Training at Epoch 76 iteration 200 with loss 0.20303. Total time 1.17138 hours\n",
      "Training at Epoch 76 iteration 300 with loss 0.23447. Total time 1.17555 hours\n",
      "Validation at Epoch 76 , MSE: 0.21438 , Pearson Correlation: 0.83992 with p-value: 0.0 , Concordance Index: 0.84593\n",
      "Training at Epoch 77 iteration 0 with loss 0.19253. Total time 1.17888 hours\n",
      "Training at Epoch 77 iteration 100 with loss 0.18471. Total time 1.18305 hours\n",
      "Training at Epoch 77 iteration 200 with loss 0.18975. Total time 1.18722 hours\n",
      "Training at Epoch 77 iteration 300 with loss 0.24867. Total time 1.19166 hours\n",
      "Validation at Epoch 77 , MSE: 0.22698 , Pearson Correlation: 0.83366 with p-value: 0.0 , Concordance Index: 0.84184\n",
      "Training at Epoch 78 iteration 0 with loss 0.22376. Total time 1.19472 hours\n",
      "Training at Epoch 78 iteration 100 with loss 0.20488. Total time 1.19888 hours\n",
      "Training at Epoch 78 iteration 200 with loss 0.23433. Total time 1.20333 hours\n",
      "Training at Epoch 78 iteration 300 with loss 0.19688. Total time 1.2075 hours\n",
      "Validation at Epoch 78 , MSE: 0.21333 , Pearson Correlation: 0.83864 with p-value: 0.0 , Concordance Index: 0.84637\n",
      "Training at Epoch 79 iteration 0 with loss 0.17513. Total time 1.21055 hours\n",
      "Training at Epoch 79 iteration 100 with loss 0.19086. Total time 1.215 hours\n",
      "Training at Epoch 79 iteration 200 with loss 0.16997. Total time 1.21916 hours\n",
      "Training at Epoch 79 iteration 300 with loss 0.20512. Total time 1.22333 hours\n",
      "Validation at Epoch 79 , MSE: 0.20564 , Pearson Correlation: 0.84337 with p-value: 0.0 , Concordance Index: 0.84681\n",
      "Training at Epoch 80 iteration 0 with loss 0.22471. Total time 1.22666 hours\n",
      "Training at Epoch 80 iteration 100 with loss 0.18882. Total time 1.23083 hours\n",
      "Training at Epoch 80 iteration 200 with loss 0.22763. Total time 1.235 hours\n",
      "Training at Epoch 80 iteration 300 with loss 0.20018. Total time 1.23944 hours\n",
      "Validation at Epoch 80 , MSE: 0.22461 , Pearson Correlation: 0.83309 with p-value: 0.0 , Concordance Index: 0.83775\n",
      "Training at Epoch 81 iteration 0 with loss 0.24212. Total time 1.2425 hours\n",
      "Training at Epoch 81 iteration 100 with loss 0.16864. Total time 1.24666 hours\n",
      "Training at Epoch 81 iteration 200 with loss 0.16825. Total time 1.25111 hours\n",
      "Training at Epoch 81 iteration 300 with loss 0.23010. Total time 1.25527 hours\n",
      "Validation at Epoch 81 , MSE: 0.21840 , Pearson Correlation: 0.84147 with p-value: 0.0 , Concordance Index: 0.84609\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 80 Testing MSE: 0.2807599307065417 , Pearson Correlation: 0.7954807814748217 with p-value: 0.0 , Concordance Index: 0.7983957946466824\n",
      "Training at Epoch 82 iteration 0 with loss 0.19909. Total time 1.2625 hours\n",
      "Training at Epoch 82 iteration 100 with loss 0.19554. Total time 1.26666 hours\n",
      "Training at Epoch 82 iteration 200 with loss 0.18757. Total time 1.27083 hours\n",
      "Training at Epoch 82 iteration 300 with loss 0.17723. Total time 1.27527 hours\n",
      "Validation at Epoch 82 , MSE: 0.21385 , Pearson Correlation: 0.83959 with p-value: 0.0 , Concordance Index: 0.84457\n",
      "Training at Epoch 83 iteration 0 with loss 0.23951. Total time 1.27833 hours\n",
      "Training at Epoch 83 iteration 100 with loss 0.16796. Total time 1.2825 hours\n",
      "Training at Epoch 83 iteration 200 with loss 0.26443. Total time 1.28694 hours\n",
      "Training at Epoch 83 iteration 300 with loss 0.18929. Total time 1.29111 hours\n",
      "Validation at Epoch 83 , MSE: 0.20919 , Pearson Correlation: 0.84133 with p-value: 0.0 , Concordance Index: 0.84458\n",
      "Training at Epoch 84 iteration 0 with loss 0.18515. Total time 1.29416 hours\n",
      "Training at Epoch 84 iteration 100 with loss 0.18684. Total time 1.29833 hours\n",
      "Training at Epoch 84 iteration 200 with loss 0.21080. Total time 1.30277 hours\n",
      "Training at Epoch 84 iteration 300 with loss 0.26893. Total time 1.30694 hours\n",
      "Validation at Epoch 84 , MSE: 0.20213 , Pearson Correlation: 0.84744 with p-value: 0.0 , Concordance Index: 0.84850\n",
      "Training at Epoch 85 iteration 0 with loss 0.16387. Total time 1.31 hours\n",
      "Training at Epoch 85 iteration 100 with loss 0.22967. Total time 1.31416 hours\n",
      "Training at Epoch 85 iteration 200 with loss 0.18123. Total time 1.31861 hours\n",
      "Training at Epoch 85 iteration 300 with loss 0.23772. Total time 1.32277 hours\n",
      "Validation at Epoch 85 , MSE: 0.22350 , Pearson Correlation: 0.83809 with p-value: 0.0 , Concordance Index: 0.84516\n",
      "Training at Epoch 86 iteration 0 with loss 0.21027. Total time 1.32583 hours\n",
      "Training at Epoch 86 iteration 100 with loss 0.21008. Total time 1.33027 hours\n",
      "Training at Epoch 86 iteration 200 with loss 0.22125. Total time 1.33444 hours\n",
      "Training at Epoch 86 iteration 300 with loss 0.22808. Total time 1.33833 hours\n",
      "Validation at Epoch 86 , MSE: 0.21040 , Pearson Correlation: 0.83990 with p-value: 0.0 , Concordance Index: 0.84919\n",
      "Training at Epoch 87 iteration 0 with loss 0.20496. Total time 1.34138 hours\n",
      "Training at Epoch 87 iteration 100 with loss 0.17056. Total time 1.34555 hours\n",
      "Training at Epoch 87 iteration 200 with loss 0.21695. Total time 1.34972 hours\n",
      "Training at Epoch 87 iteration 300 with loss 0.27698. Total time 1.35361 hours\n",
      "Validation at Epoch 87 , MSE: 0.21102 , Pearson Correlation: 0.84284 with p-value: 0.0 , Concordance Index: 0.84888\n",
      "Training at Epoch 88 iteration 0 with loss 0.17524. Total time 1.35666 hours\n",
      "Training at Epoch 88 iteration 100 with loss 0.20894. Total time 1.36083 hours\n",
      "Training at Epoch 88 iteration 200 with loss 0.48068. Total time 1.365 hours\n",
      "Training at Epoch 88 iteration 300 with loss 0.21947. Total time 1.36888 hours\n",
      "Validation at Epoch 88 , MSE: 0.20378 , Pearson Correlation: 0.84449 with p-value: 0.0 , Concordance Index: 0.84974\n",
      "Training at Epoch 89 iteration 0 with loss 0.20073. Total time 1.37194 hours\n",
      "Training at Epoch 89 iteration 100 with loss 0.22592. Total time 1.37611 hours\n",
      "Training at Epoch 89 iteration 200 with loss 0.23688. Total time 1.38027 hours\n",
      "Training at Epoch 89 iteration 300 with loss 0.19283. Total time 1.38444 hours\n",
      "Validation at Epoch 89 , MSE: 0.20451 , Pearson Correlation: 0.84756 with p-value: 0.0 , Concordance Index: 0.85051\n",
      "Training at Epoch 90 iteration 0 with loss 0.15675. Total time 1.3875 hours\n",
      "Training at Epoch 90 iteration 100 with loss 0.21574. Total time 1.39166 hours\n",
      "Training at Epoch 90 iteration 200 with loss 0.14561. Total time 1.39555 hours\n",
      "Training at Epoch 90 iteration 300 with loss 0.23627. Total time 1.39972 hours\n",
      "Validation at Epoch 90 , MSE: 0.20855 , Pearson Correlation: 0.84073 with p-value: 0.0 , Concordance Index: 0.84568\n",
      "Training at Epoch 91 iteration 0 with loss 0.19968. Total time 1.40277 hours\n",
      "Training at Epoch 91 iteration 100 with loss 0.27914. Total time 1.40694 hours\n",
      "Training at Epoch 91 iteration 200 with loss 0.23546. Total time 1.41111 hours\n",
      "Training at Epoch 91 iteration 300 with loss 0.20110. Total time 1.415 hours\n",
      "Validation at Epoch 91 , MSE: 0.21616 , Pearson Correlation: 0.83692 with p-value: 0.0 , Concordance Index: 0.84477\n",
      "Training at Epoch 92 iteration 0 with loss 0.18896. Total time 1.41805 hours\n",
      "Training at Epoch 92 iteration 100 with loss 0.15768. Total time 1.42222 hours\n",
      "Training at Epoch 92 iteration 200 with loss 0.24046. Total time 1.42638 hours\n",
      "Training at Epoch 92 iteration 300 with loss 0.22073. Total time 1.43027 hours\n",
      "Validation at Epoch 92 , MSE: 0.20986 , Pearson Correlation: 0.84367 with p-value: 0.0 , Concordance Index: 0.85004\n",
      "Training at Epoch 93 iteration 0 with loss 0.13320. Total time 1.43333 hours\n",
      "Training at Epoch 93 iteration 100 with loss 0.18903. Total time 1.4375 hours\n",
      "Training at Epoch 93 iteration 200 with loss 0.15837. Total time 1.44166 hours\n",
      "Training at Epoch 93 iteration 300 with loss 0.19432. Total time 1.44555 hours\n",
      "Validation at Epoch 93 , MSE: 0.20960 , Pearson Correlation: 0.84018 with p-value: 0.0 , Concordance Index: 0.84988\n",
      "Training at Epoch 94 iteration 0 with loss 0.16666. Total time 1.44888 hours\n",
      "Training at Epoch 94 iteration 100 with loss 0.17201. Total time 1.45277 hours\n",
      "Training at Epoch 94 iteration 200 with loss 0.26911. Total time 1.45694 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 94 iteration 300 with loss 0.20514. Total time 1.46083 hours\n",
      "Validation at Epoch 94 , MSE: 0.22112 , Pearson Correlation: 0.83592 with p-value: 0.0 , Concordance Index: 0.84567\n",
      "Training at Epoch 95 iteration 0 with loss 0.26078. Total time 1.46416 hours\n",
      "Training at Epoch 95 iteration 100 with loss 0.28748. Total time 1.46805 hours\n",
      "Training at Epoch 95 iteration 200 with loss 0.20169. Total time 1.47222 hours\n",
      "Training at Epoch 95 iteration 300 with loss 0.19666. Total time 1.47638 hours\n",
      "Validation at Epoch 95 , MSE: 0.20641 , Pearson Correlation: 0.84339 with p-value: 0.0 , Concordance Index: 0.85098\n",
      "Training at Epoch 96 iteration 0 with loss 0.19598. Total time 1.47944 hours\n",
      "Training at Epoch 96 iteration 100 with loss 0.24542. Total time 1.48361 hours\n",
      "Training at Epoch 96 iteration 200 with loss 0.21572. Total time 1.4875 hours\n",
      "Training at Epoch 96 iteration 300 with loss 0.19128. Total time 1.49166 hours\n",
      "Validation at Epoch 96 , MSE: 0.19803 , Pearson Correlation: 0.84916 with p-value: 0.0 , Concordance Index: 0.85028\n",
      "Training at Epoch 97 iteration 0 with loss 0.16435. Total time 1.49472 hours\n",
      "Training at Epoch 97 iteration 100 with loss 0.18163. Total time 1.49888 hours\n",
      "Training at Epoch 97 iteration 200 with loss 0.16959. Total time 1.50305 hours\n",
      "Training at Epoch 97 iteration 300 with loss 0.27709. Total time 1.50722 hours\n",
      "Validation at Epoch 97 , MSE: 0.20479 , Pearson Correlation: 0.84439 with p-value: 0.0 , Concordance Index: 0.84851\n",
      "Training at Epoch 98 iteration 0 with loss 0.19737. Total time 1.51027 hours\n",
      "Training at Epoch 98 iteration 100 with loss 0.21055. Total time 1.51444 hours\n",
      "Training at Epoch 98 iteration 200 with loss 0.22417. Total time 1.51861 hours\n",
      "Training at Epoch 98 iteration 300 with loss 0.17739. Total time 1.52277 hours\n",
      "Validation at Epoch 98 , MSE: 0.24320 , Pearson Correlation: 0.83910 with p-value: 0.0 , Concordance Index: 0.84526\n",
      "Training at Epoch 99 iteration 0 with loss 0.26609. Total time 1.52583 hours\n",
      "Training at Epoch 99 iteration 100 with loss 0.21958. Total time 1.53 hours\n",
      "Training at Epoch 99 iteration 200 with loss 0.24501. Total time 1.53416 hours\n",
      "Training at Epoch 99 iteration 300 with loss 0.16474. Total time 1.53833 hours\n",
      "Validation at Epoch 99 , MSE: 0.20597 , Pearson Correlation: 0.84508 with p-value: 0.0 , Concordance Index: 0.85166\n",
      "Training at Epoch 100 iteration 0 with loss 0.16897. Total time 1.54138 hours\n",
      "Training at Epoch 100 iteration 100 with loss 0.19370. Total time 1.54555 hours\n",
      "Training at Epoch 100 iteration 200 with loss 0.14332. Total time 1.54972 hours\n",
      "Training at Epoch 100 iteration 300 with loss 0.15641. Total time 1.55388 hours\n",
      "Validation at Epoch 100 , MSE: 0.20654 , Pearson Correlation: 0.84508 with p-value: 0.0 , Concordance Index: 0.85339\n",
      "--- Go for Testing ---\n",
      "Testing MSE: 0.26307858092533903 , Pearson Correlation: 0.7928470943624972 with p-value: 0.0 , Concordance Index: 0.8008585281851184\n",
      "--- Training Finished ---\n"
     ]
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYo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xA+LiMXAc8D9mflkRPwf4OyImEG1otsqqruY3gVcl5nfWMd7XwkcD/xDRJxP1TdxMvDzEcfdXZ6PjYj5VP0Yi0cZh3Ey1V1P342IvwE2o7rTahVr1pSWOsLObA2krNZj/kOq9v8fUC33+Tul7u+AD1B1PP8jVbL4LNUfVre38N7fBz4OvAP4LtXKcUdQrW7WeNwdwKnlvDeUGN44ynteSTVGYypwMdUym/cA78yyrrrUKa5wJ0mq5RWFJKmWiUKSVMtEIUmqZaKQJNUyUUiSapkoJEm1TBSSpFomCklSrf8PLh/36LrCzq0AAAAASUVORK5CYII=\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "drug_encoding = 'Daylight'\n",
    "target_encoding = 'AAC'\n",
    "train, val, test = data_process(X_drug, X_target, y, \n",
    "                                drug_encoding, target_encoding, \n",
    "                                split_method='random',frac=[0.7,0.1,0.2], random_seed = 3)\n",
    "\n",
    "config = generate_config(drug_encoding = drug_encoding, \n",
    "                         target_encoding = target_encoding, \n",
    "                         cls_hidden_dims = [1024,1024,512], \n",
    "                         train_epoch = 100, \n",
    "                         LR = 0.001, \n",
    "                         batch_size = 256\n",
    "                        )\n",
    "model = models.model_initialize(**config)\n",
    "model.train(train, val, test)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [],
   "source": [
    "model.save_model('./model_daylight_aac_kiba')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "in total: 118254 drug-target pairs\n",
      "encoding drug...\n",
      "unique drugs: 2068\n",
      "drug encoding finished...\n",
      "encoding protein...\n",
      "unique target sequence: 229\n",
      "-- Encoding AAC takes time. Time Reference: 24s for ~100 sequences in a CPU. Calculate your time by the unique target sequence #, instead of the entire dataset.\n",
      "protein encoding finished...\n",
      "splitting dataset...\n",
      "Done.\n",
      "Let's use 1 GPU!\n",
      "--- Data Preparation ---\n",
      "--- Go for Training ---\n",
      "Training at Epoch 1 iteration 0 with loss 136.576. Total time 0.0 hours\n",
      "Training at Epoch 1 iteration 100 with loss 2.22874. Total time 0.00388 hours\n",
      "Training at Epoch 1 iteration 200 with loss 1.33559. Total time 0.00777 hours\n",
      "Training at Epoch 1 iteration 300 with loss 1.01173. Total time 0.01166 hours\n",
      "Validation at Epoch 1 , MSE: 0.53649 , Pearson Correlation: 0.49146 with p-value: 0.0 , Concordance Index: 0.70255\n",
      "Training at Epoch 2 iteration 0 with loss 1.04931. Total time 0.01444 hours\n",
      "Training at Epoch 2 iteration 100 with loss 0.86857. Total time 0.01833 hours\n",
      "Training at Epoch 2 iteration 200 with loss 0.72862. Total time 0.02222 hours\n",
      "Training at Epoch 2 iteration 300 with loss 0.80038. Total time 0.02583 hours\n",
      "Validation at Epoch 2 , MSE: 0.98904 , Pearson Correlation: 0.59381 with p-value: 0.0 , Concordance Index: 0.73794\n",
      "Training at Epoch 3 iteration 0 with loss 1.35821. Total time 0.02888 hours\n",
      "Training at Epoch 3 iteration 100 with loss 1.13715. Total time 0.0325 hours\n",
      "Training at Epoch 3 iteration 200 with loss 0.66960. Total time 0.03638 hours\n",
      "Training at Epoch 3 iteration 300 with loss 0.71511. Total time 0.04027 hours\n",
      "Validation at Epoch 3 , MSE: 0.48056 , Pearson Correlation: 0.61965 with p-value: 0.0 , Concordance Index: 0.74935\n",
      "Training at Epoch 4 iteration 0 with loss 0.68221. Total time 0.04305 hours\n",
      "Training at Epoch 4 iteration 100 with loss 0.70599. Total time 0.04694 hours\n",
      "Training at Epoch 4 iteration 200 with loss 0.76196. Total time 0.05111 hours\n",
      "Training at Epoch 4 iteration 300 with loss 0.73864. Total time 0.055 hours\n",
      "Validation at Epoch 4 , MSE: 0.50830 , Pearson Correlation: 0.63654 with p-value: 0.0 , Concordance Index: 0.75602\n",
      "Training at Epoch 5 iteration 0 with loss 0.61485. Total time 0.05777 hours\n",
      "Training at Epoch 5 iteration 100 with loss 0.67367. Total time 0.06166 hours\n",
      "Training at Epoch 5 iteration 200 with loss 0.85930. Total time 0.06555 hours\n",
      "Training at Epoch 5 iteration 300 with loss 0.76364. Total time 0.06916 hours\n",
      "Validation at Epoch 5 , MSE: 0.41561 , Pearson Correlation: 0.64914 with p-value: 0.0 , Concordance Index: 0.75590\n",
      "Training at Epoch 6 iteration 0 with loss 0.69385. Total time 0.07222 hours\n",
      "Training at Epoch 6 iteration 100 with loss 0.70504. Total time 0.07611 hours\n",
      "Training at Epoch 6 iteration 200 with loss 0.55329. Total time 0.08 hours\n",
      "Training at Epoch 6 iteration 300 with loss 0.97615. Total time 0.08388 hours\n",
      "Validation at Epoch 6 , MSE: 0.44331 , Pearson Correlation: 0.64842 with p-value: 0.0 , Concordance Index: 0.75506\n",
      "Training at Epoch 7 iteration 0 with loss 0.67469. Total time 0.08694 hours\n",
      "Training at Epoch 7 iteration 100 with loss 0.61938. Total time 0.09083 hours\n",
      "Training at Epoch 7 iteration 200 with loss 0.59798. Total time 0.09444 hours\n",
      "Training at Epoch 7 iteration 300 with loss 0.58252. Total time 0.09833 hours\n",
      "Validation at Epoch 7 , MSE: 0.44306 , Pearson Correlation: 0.65805 with p-value: 0.0 , Concordance Index: 0.76260\n",
      "Training at Epoch 8 iteration 0 with loss 0.52232. Total time 0.10111 hours\n",
      "Training at Epoch 8 iteration 100 with loss 0.67463. Total time 0.105 hours\n",
      "Training at Epoch 8 iteration 200 with loss 0.39990. Total time 0.10888 hours\n",
      "Training at Epoch 8 iteration 300 with loss 0.54150. Total time 0.1125 hours\n",
      "Validation at Epoch 8 , MSE: 0.40186 , Pearson Correlation: 0.65484 with p-value: 0.0 , Concordance Index: 0.75898\n",
      "Training at Epoch 9 iteration 0 with loss 0.73216. Total time 0.11555 hours\n",
      "Training at Epoch 9 iteration 100 with loss 0.63383. Total time 0.11916 hours\n",
      "Training at Epoch 9 iteration 200 with loss 0.78253. Total time 0.12305 hours\n",
      "Training at Epoch 9 iteration 300 with loss 0.64705. Total time 0.12694 hours\n",
      "Validation at Epoch 9 , MSE: 0.42846 , Pearson Correlation: 0.66006 with p-value: 0.0 , Concordance Index: 0.76271\n",
      "Training at Epoch 10 iteration 0 with loss 0.67911. Total time 0.12972 hours\n",
      "Training at Epoch 10 iteration 100 with loss 0.63067. Total time 0.13333 hours\n",
      "Training at Epoch 10 iteration 200 with loss 0.64859. Total time 0.13722 hours\n",
      "Training at Epoch 10 iteration 300 with loss 0.45249. Total time 0.14111 hours\n",
      "Validation at Epoch 10 , MSE: 0.41103 , Pearson Correlation: 0.65920 with p-value: 0.0 , Concordance Index: 0.76346\n",
      "Training at Epoch 11 iteration 0 with loss 0.86279. Total time 0.14388 hours\n",
      "Training at Epoch 11 iteration 100 with loss 0.59475. Total time 0.14777 hours\n",
      "Training at Epoch 11 iteration 200 with loss 0.60435. Total time 0.15166 hours\n",
      "Training at Epoch 11 iteration 300 with loss 0.59099. Total time 0.15527 hours\n",
      "Validation at Epoch 11 , MSE: 0.80130 , Pearson Correlation: 0.66525 with p-value: 0.0 , Concordance Index: 0.76971\n",
      "Training at Epoch 12 iteration 0 with loss 0.49126. Total time 0.15833 hours\n",
      "Training at Epoch 12 iteration 100 with loss 0.62113. Total time 0.16222 hours\n",
      "Training at Epoch 12 iteration 200 with loss 0.49920. Total time 0.16611 hours\n",
      "Training at Epoch 12 iteration 300 with loss 0.51520. Total time 0.17 hours\n",
      "Validation at Epoch 12 , MSE: 0.53173 , Pearson Correlation: 0.66640 with p-value: 0.0 , Concordance Index: 0.76675\n",
      "Training at Epoch 13 iteration 0 with loss 0.50147. Total time 0.17305 hours\n",
      "Training at Epoch 13 iteration 100 with loss 0.61197. Total time 0.17666 hours\n",
      "Training at Epoch 13 iteration 200 with loss 0.42250. Total time 0.18055 hours\n",
      "Training at Epoch 13 iteration 300 with loss 0.61325. Total time 0.18416 hours\n",
      "Validation at Epoch 13 , MSE: 0.59320 , Pearson Correlation: 0.67061 with p-value: 0.0 , Concordance Index: 0.77091\n",
      "Training at Epoch 14 iteration 0 with loss 0.48601. Total time 0.18722 hours\n",
      "Training at Epoch 14 iteration 100 with loss 0.53616. Total time 0.19083 hours\n",
      "Training at Epoch 14 iteration 200 with loss 0.40750. Total time 0.19472 hours\n",
      "Training at Epoch 14 iteration 300 with loss 0.53922. Total time 0.19861 hours\n",
      "Validation at Epoch 14 , MSE: 0.49687 , Pearson Correlation: 0.67607 with p-value: 0.0 , Concordance Index: 0.77297\n",
      "Training at Epoch 15 iteration 0 with loss 0.59363. Total time 0.20138 hours\n",
      "Training at Epoch 15 iteration 100 with loss 0.45920. Total time 0.20527 hours\n",
      "Training at Epoch 15 iteration 200 with loss 0.44071. Total time 0.20944 hours\n",
      "Training at Epoch 15 iteration 300 with loss 0.50151. Total time 0.21333 hours\n",
      "Validation at Epoch 15 , MSE: 0.70545 , Pearson Correlation: 0.68947 with p-value: 0.0 , Concordance Index: 0.77899\n",
      "Training at Epoch 16 iteration 0 with loss 0.59653. Total time 0.21638 hours\n",
      "Training at Epoch 16 iteration 100 with loss 0.42301. Total time 0.22027 hours\n",
      "Training at Epoch 16 iteration 200 with loss 0.53515. Total time 0.22444 hours\n",
      "Training at Epoch 16 iteration 300 with loss 0.52070. Total time 0.22833 hours\n",
      "Validation at Epoch 16 , MSE: 0.80821 , Pearson Correlation: 0.71887 with p-value: 0.0 , Concordance Index: 0.78251\n",
      "Training at Epoch 17 iteration 0 with loss 0.57290. Total time 0.23111 hours\n",
      "Training at Epoch 17 iteration 100 with loss 0.48812. Total time 0.235 hours\n",
      "Training at Epoch 17 iteration 200 with loss 0.55428. Total time 0.23888 hours\n",
      "Training at Epoch 17 iteration 300 with loss 0.59391. Total time 0.24277 hours\n",
      "Validation at Epoch 17 , MSE: 1.01194 , Pearson Correlation: 0.72964 with p-value: 0.0 , Concordance Index: 0.78449\n",
      "Training at Epoch 18 iteration 0 with loss 0.52790. Total time 0.24555 hours\n",
      "Training at Epoch 18 iteration 100 with loss 0.35452. Total time 0.24944 hours\n",
      "Training at Epoch 18 iteration 200 with loss 0.49288. Total time 0.25333 hours\n",
      "Training at Epoch 18 iteration 300 with loss 0.38139. Total time 0.25722 hours\n",
      "Validation at Epoch 18 , MSE: 1.06925 , Pearson Correlation: 0.73644 with p-value: 0.0 , Concordance Index: 0.79372\n",
      "Training at Epoch 19 iteration 0 with loss 0.57233. Total time 0.26 hours\n",
      "Training at Epoch 19 iteration 100 with loss 0.58312. Total time 0.26388 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 19 iteration 200 with loss 0.62567. Total time 0.26805 hours\n",
      "Training at Epoch 19 iteration 300 with loss 0.45392. Total time 0.27222 hours\n",
      "Validation at Epoch 19 , MSE: 0.64523 , Pearson Correlation: 0.74117 with p-value: 0.0 , Concordance Index: 0.79237\n",
      "Training at Epoch 20 iteration 0 with loss 0.39486. Total time 0.27527 hours\n",
      "Training at Epoch 20 iteration 100 with loss 0.49225. Total time 0.27888 hours\n",
      "Training at Epoch 20 iteration 200 with loss 0.49836. Total time 0.28277 hours\n",
      "Training at Epoch 20 iteration 300 with loss 0.43735. Total time 0.28666 hours\n",
      "Validation at Epoch 20 , MSE: 0.63904 , Pearson Correlation: 0.74402 with p-value: 0.0 , Concordance Index: 0.79099\n",
      "Training at Epoch 21 iteration 0 with loss 0.37876. Total time 0.28944 hours\n",
      "Training at Epoch 21 iteration 100 with loss 0.55339. Total time 0.29333 hours\n",
      "Training at Epoch 21 iteration 200 with loss 0.45176. Total time 0.29722 hours\n",
      "Training at Epoch 21 iteration 300 with loss 0.70045. Total time 0.30083 hours\n",
      "Validation at Epoch 21 , MSE: 0.81916 , Pearson Correlation: 0.74490 with p-value: 0.0 , Concordance Index: 0.79443\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 20 Testing MSE: 0.46491191374672935 , Pearson Correlation: 0.6564907837347678 with p-value: 0.0 , Concordance Index: 0.7258166484498146\n",
      "Training at Epoch 22 iteration 0 with loss 0.39046. Total time 0.30777 hours\n",
      "Training at Epoch 22 iteration 100 with loss 0.35792. Total time 0.31166 hours\n",
      "Training at Epoch 22 iteration 200 with loss 0.56916. Total time 0.31583 hours\n",
      "Training at Epoch 22 iteration 300 with loss 0.36831. Total time 0.31972 hours\n",
      "Validation at Epoch 22 , MSE: 0.73296 , Pearson Correlation: 0.74301 with p-value: 0.0 , Concordance Index: 0.78793\n",
      "Training at Epoch 23 iteration 0 with loss 0.45522. Total time 0.32305 hours\n",
      "Training at Epoch 23 iteration 100 with loss 0.47980. Total time 0.32666 hours\n",
      "Training at Epoch 23 iteration 200 with loss 0.48874. Total time 0.33055 hours\n",
      "Training at Epoch 23 iteration 300 with loss 0.45586. Total time 0.33416 hours\n",
      "Validation at Epoch 23 , MSE: 0.77230 , Pearson Correlation: 0.72822 with p-value: 0.0 , Concordance Index: 0.78327\n",
      "Training at Epoch 24 iteration 0 with loss 0.51622. Total time 0.3375 hours\n",
      "Training at Epoch 24 iteration 100 with loss 0.49645. Total time 0.34111 hours\n",
      "Training at Epoch 24 iteration 200 with loss 0.30379. Total time 0.345 hours\n",
      "Training at Epoch 24 iteration 300 with loss 0.35366. Total time 0.34861 hours\n",
      "Validation at Epoch 24 , MSE: 0.34207 , Pearson Correlation: 0.74965 with p-value: 0.0 , Concordance Index: 0.79565\n",
      "Training at Epoch 25 iteration 0 with loss 0.61223. Total time 0.35194 hours\n",
      "Training at Epoch 25 iteration 100 with loss 0.39885. Total time 0.35555 hours\n",
      "Training at Epoch 25 iteration 200 with loss 0.47720. Total time 0.35972 hours\n",
      "Training at Epoch 25 iteration 300 with loss 0.52368. Total time 0.36388 hours\n",
      "Validation at Epoch 25 , MSE: 0.50331 , Pearson Correlation: 0.74057 with p-value: 0.0 , Concordance Index: 0.79299\n",
      "Training at Epoch 26 iteration 0 with loss 0.40500. Total time 0.36694 hours\n",
      "Training at Epoch 26 iteration 100 with loss 0.37092. Total time 0.37083 hours\n",
      "Training at Epoch 26 iteration 200 with loss 0.35139. Total time 0.37472 hours\n",
      "Training at Epoch 26 iteration 300 with loss 0.45241. Total time 0.37833 hours\n",
      "Validation at Epoch 26 , MSE: 0.44013 , Pearson Correlation: 0.74620 with p-value: 0.0 , Concordance Index: 0.79705\n",
      "Training at Epoch 27 iteration 0 with loss 0.47074. Total time 0.38138 hours\n",
      "Training at Epoch 27 iteration 100 with loss 0.44536. Total time 0.38527 hours\n",
      "Training at Epoch 27 iteration 200 with loss 0.49645. Total time 0.38916 hours\n",
      "Training at Epoch 27 iteration 300 with loss 0.47726. Total time 0.39277 hours\n",
      "Validation at Epoch 27 , MSE: 0.87449 , Pearson Correlation: 0.75166 with p-value: 0.0 , Concordance Index: 0.79554\n",
      "Training at Epoch 28 iteration 0 with loss 0.38221. Total time 0.39611 hours\n",
      "Training at Epoch 28 iteration 100 with loss 0.36728. Total time 0.39972 hours\n",
      "Training at Epoch 28 iteration 200 with loss 0.42924. Total time 0.40361 hours\n",
      "Training at Epoch 28 iteration 300 with loss 0.37582. Total time 0.40722 hours\n",
      "Validation at Epoch 28 , MSE: 0.74048 , Pearson Correlation: 0.75363 with p-value: 0.0 , Concordance Index: 0.80108\n",
      "Training at Epoch 29 iteration 0 with loss 0.38660. Total time 0.41055 hours\n",
      "Training at Epoch 29 iteration 100 with loss 0.36645. Total time 0.41416 hours\n",
      "Training at Epoch 29 iteration 200 with loss 0.29007. Total time 0.41805 hours\n",
      "Training at Epoch 29 iteration 300 with loss 0.51646. Total time 0.42166 hours\n",
      "Validation at Epoch 29 , MSE: 0.39108 , Pearson Correlation: 0.75807 with p-value: 0.0 , Concordance Index: 0.80041\n",
      "Training at Epoch 30 iteration 0 with loss 0.41524. Total time 0.42472 hours\n",
      "Training at Epoch 30 iteration 100 with loss 0.38035. Total time 0.42861 hours\n",
      "Training at Epoch 30 iteration 200 with loss 0.37158. Total time 0.43277 hours\n",
      "Training at Epoch 30 iteration 300 with loss 0.34146. Total time 0.43694 hours\n",
      "Validation at Epoch 30 , MSE: 0.76077 , Pearson Correlation: 0.76022 with p-value: 0.0 , Concordance Index: 0.80424\n",
      "Training at Epoch 31 iteration 0 with loss 0.42189. Total time 0.44 hours\n",
      "Training at Epoch 31 iteration 100 with loss 0.41232. Total time 0.44388 hours\n",
      "Training at Epoch 31 iteration 200 with loss 0.34524. Total time 0.44805 hours\n",
      "Training at Epoch 31 iteration 300 with loss 0.33104. Total time 0.45194 hours\n",
      "Validation at Epoch 31 , MSE: 0.57252 , Pearson Correlation: 0.76392 with p-value: 0.0 , Concordance Index: 0.80749\n",
      "Training at Epoch 32 iteration 0 with loss 0.32048. Total time 0.45527 hours\n",
      "Training at Epoch 32 iteration 100 with loss 0.35317. Total time 0.45916 hours\n",
      "Training at Epoch 32 iteration 200 with loss 0.37987. Total time 0.46333 hours\n",
      "Training at Epoch 32 iteration 300 with loss 0.33278. Total time 0.46722 hours\n",
      "Validation at Epoch 32 , MSE: 0.42114 , Pearson Correlation: 0.75670 with p-value: 0.0 , Concordance Index: 0.80010\n",
      "Training at Epoch 33 iteration 0 with loss 0.47218. Total time 0.47055 hours\n",
      "Training at Epoch 33 iteration 100 with loss 0.42608. Total time 0.47416 hours\n",
      "Training at Epoch 33 iteration 200 with loss 0.47564. Total time 0.47805 hours\n",
      "Training at Epoch 33 iteration 300 with loss 0.41892. Total time 0.48166 hours\n",
      "Validation at Epoch 33 , MSE: 0.49626 , Pearson Correlation: 0.76007 with p-value: 0.0 , Concordance Index: 0.80214\n",
      "Training at Epoch 34 iteration 0 with loss 0.46360. Total time 0.485 hours\n",
      "Training at Epoch 34 iteration 100 with loss 0.38101. Total time 0.48861 hours\n",
      "Training at Epoch 34 iteration 200 with loss 0.34312. Total time 0.4925 hours\n",
      "Training at Epoch 34 iteration 300 with loss 0.33831. Total time 0.49611 hours\n",
      "Validation at Epoch 34 , MSE: 0.29015 , Pearson Correlation: 0.76550 with p-value: 0.0 , Concordance Index: 0.80888\n",
      "Training at Epoch 35 iteration 0 with loss 0.40375. Total time 0.49944 hours\n",
      "Training at Epoch 35 iteration 100 with loss 0.30261. Total time 0.50305 hours\n",
      "Training at Epoch 35 iteration 200 with loss 0.33934. Total time 0.50694 hours\n",
      "Training at Epoch 35 iteration 300 with loss 0.38136. Total time 0.51083 hours\n",
      "Validation at Epoch 35 , MSE: 0.40219 , Pearson Correlation: 0.77645 with p-value: 0.0 , Concordance Index: 0.81034\n",
      "Training at Epoch 36 iteration 0 with loss 0.39752. Total time 0.51388 hours\n",
      "Training at Epoch 36 iteration 100 with loss 0.41996. Total time 0.51777 hours\n",
      "Training at Epoch 36 iteration 200 with loss 0.30931. Total time 0.52166 hours\n",
      "Training at Epoch 36 iteration 300 with loss 0.38358. Total time 0.52583 hours\n",
      "Validation at Epoch 36 , MSE: 0.29626 , Pearson Correlation: 0.77123 with p-value: 0.0 , Concordance Index: 0.80922\n",
      "Training at Epoch 37 iteration 0 with loss 0.31257. Total time 0.52888 hours\n",
      "Training at Epoch 37 iteration 100 with loss 0.32821. Total time 0.53277 hours\n",
      "Training at Epoch 37 iteration 200 with loss 0.38105. Total time 0.53666 hours\n",
      "Training at Epoch 37 iteration 300 with loss 0.34246. Total time 0.54027 hours\n",
      "Validation at Epoch 37 , MSE: 0.29107 , Pearson Correlation: 0.77146 with p-value: 0.0 , Concordance Index: 0.80424\n",
      "Training at Epoch 38 iteration 0 with loss 0.38916. Total time 0.54333 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 38 iteration 100 with loss 0.29950. Total time 0.54722 hours\n",
      "Training at Epoch 38 iteration 200 with loss 0.27682. Total time 0.55111 hours\n",
      "Training at Epoch 38 iteration 300 with loss 0.34224. Total time 0.55472 hours\n",
      "Validation at Epoch 38 , MSE: 0.36713 , Pearson Correlation: 0.77175 with p-value: 0.0 , Concordance Index: 0.80817\n",
      "Training at Epoch 39 iteration 0 with loss 0.36914. Total time 0.55805 hours\n",
      "Training at Epoch 39 iteration 100 with loss 0.25292. Total time 0.56166 hours\n",
      "Training at Epoch 39 iteration 200 with loss 0.38458. Total time 0.56555 hours\n",
      "Training at Epoch 39 iteration 300 with loss 0.28632. Total time 0.56944 hours\n",
      "Validation at Epoch 39 , MSE: 0.29263 , Pearson Correlation: 0.77989 with p-value: 0.0 , Concordance Index: 0.81083\n",
      "Training at Epoch 40 iteration 0 with loss 0.39146. Total time 0.5725 hours\n",
      "Training at Epoch 40 iteration 100 with loss 0.26338. Total time 0.57611 hours\n",
      "Training at Epoch 40 iteration 200 with loss 0.32634. Total time 0.58 hours\n",
      "Training at Epoch 40 iteration 300 with loss 0.45100. Total time 0.58361 hours\n",
      "Validation at Epoch 40 , MSE: 0.28103 , Pearson Correlation: 0.77408 with p-value: 0.0 , Concordance Index: 0.80840\n",
      "Training at Epoch 41 iteration 0 with loss 0.31210. Total time 0.58694 hours\n",
      "Training at Epoch 41 iteration 100 with loss 0.30769. Total time 0.59055 hours\n",
      "Training at Epoch 41 iteration 200 with loss 0.36647. Total time 0.59472 hours\n",
      "Training at Epoch 41 iteration 300 with loss 0.36291. Total time 0.59888 hours\n",
      "Validation at Epoch 41 , MSE: 0.36775 , Pearson Correlation: 0.78675 with p-value: 0.0 , Concordance Index: 0.81910\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 40 Testing MSE: 0.39272297023435365 , Pearson Correlation: 0.7357775385380526 with p-value: 0.0 , Concordance Index: 0.7654349639446841\n",
      "Training at Epoch 42 iteration 0 with loss 0.31743. Total time 0.60583 hours\n",
      "Training at Epoch 42 iteration 100 with loss 0.31348. Total time 0.60972 hours\n",
      "Training at Epoch 42 iteration 200 with loss 0.35173. Total time 0.61333 hours\n",
      "Training at Epoch 42 iteration 300 with loss 0.26336. Total time 0.61722 hours\n",
      "Validation at Epoch 42 , MSE: 0.28896 , Pearson Correlation: 0.78758 with p-value: 0.0 , Concordance Index: 0.82067\n",
      "Training at Epoch 43 iteration 0 with loss 0.26296. Total time 0.62027 hours\n",
      "Training at Epoch 43 iteration 100 with loss 0.35776. Total time 0.62416 hours\n",
      "Training at Epoch 43 iteration 200 with loss 0.33293. Total time 0.62833 hours\n",
      "Training at Epoch 43 iteration 300 with loss 0.27150. Total time 0.63222 hours\n",
      "Validation at Epoch 43 , MSE: 0.29869 , Pearson Correlation: 0.79035 with p-value: 0.0 , Concordance Index: 0.81535\n",
      "Training at Epoch 44 iteration 0 with loss 0.36994. Total time 0.63555 hours\n",
      "Training at Epoch 44 iteration 100 with loss 0.28844. Total time 0.63916 hours\n",
      "Training at Epoch 44 iteration 200 with loss 0.31412. Total time 0.64305 hours\n",
      "Training at Epoch 44 iteration 300 with loss 0.31990. Total time 0.64694 hours\n",
      "Validation at Epoch 44 , MSE: 0.29048 , Pearson Correlation: 0.78423 with p-value: 0.0 , Concordance Index: 0.82285\n",
      "Training at Epoch 45 iteration 0 with loss 0.36043. Total time 0.65 hours\n",
      "Training at Epoch 45 iteration 100 with loss 0.27713. Total time 0.65388 hours\n",
      "Training at Epoch 45 iteration 200 with loss 0.21256. Total time 0.65777 hours\n",
      "Training at Epoch 45 iteration 300 with loss 0.20088. Total time 0.66194 hours\n",
      "Validation at Epoch 45 , MSE: 0.26664 , Pearson Correlation: 0.78956 with p-value: 0.0 , Concordance Index: 0.81909\n",
      "Training at Epoch 46 iteration 0 with loss 0.21645. Total time 0.665 hours\n",
      "Training at Epoch 46 iteration 100 with loss 0.27087. Total time 0.66888 hours\n",
      "Training at Epoch 46 iteration 200 with loss 0.55427. Total time 0.67277 hours\n",
      "Training at Epoch 46 iteration 300 with loss 0.35830. Total time 0.67638 hours\n",
      "Validation at Epoch 46 , MSE: 0.27032 , Pearson Correlation: 0.79393 with p-value: 0.0 , Concordance Index: 0.82530\n",
      "Training at Epoch 47 iteration 0 with loss 0.33546. Total time 0.67944 hours\n",
      "Training at Epoch 47 iteration 100 with loss 0.28038. Total time 0.68333 hours\n",
      "Training at Epoch 47 iteration 200 with loss 0.42175. Total time 0.68722 hours\n",
      "Training at Epoch 47 iteration 300 with loss 0.32004. Total time 0.69083 hours\n",
      "Validation at Epoch 47 , MSE: 0.26869 , Pearson Correlation: 0.79662 with p-value: 0.0 , Concordance Index: 0.82375\n",
      "Training at Epoch 48 iteration 0 with loss 0.20176. Total time 0.69416 hours\n",
      "Training at Epoch 48 iteration 100 with loss 0.28472. Total time 0.69777 hours\n",
      "Training at Epoch 48 iteration 200 with loss 0.23856. Total time 0.70194 hours\n",
      "Training at Epoch 48 iteration 300 with loss 0.28297. Total time 0.70611 hours\n",
      "Validation at Epoch 48 , MSE: 0.26487 , Pearson Correlation: 0.79586 with p-value: 0.0 , Concordance Index: 0.83174\n",
      "Training at Epoch 49 iteration 0 with loss 0.25840. Total time 0.70916 hours\n",
      "Training at Epoch 49 iteration 100 with loss 0.32290. Total time 0.71305 hours\n",
      "Training at Epoch 49 iteration 200 with loss 0.27567. Total time 0.71666 hours\n",
      "Training at Epoch 49 iteration 300 with loss 0.29881. Total time 0.72055 hours\n",
      "Validation at Epoch 49 , MSE: 0.25165 , Pearson Correlation: 0.80353 with p-value: 0.0 , Concordance Index: 0.82892\n",
      "Training at Epoch 50 iteration 0 with loss 0.21724. Total time 0.72361 hours\n",
      "Training at Epoch 50 iteration 100 with loss 0.34461. Total time 0.7275 hours\n",
      "Training at Epoch 50 iteration 200 with loss 0.21338. Total time 0.73138 hours\n",
      "Training at Epoch 50 iteration 300 with loss 0.34530. Total time 0.73527 hours\n",
      "Validation at Epoch 50 , MSE: 0.25046 , Pearson Correlation: 0.80433 with p-value: 0.0 , Concordance Index: 0.82584\n",
      "Training at Epoch 51 iteration 0 with loss 0.26933. Total time 0.73833 hours\n",
      "Training at Epoch 51 iteration 100 with loss 0.20381. Total time 0.74222 hours\n",
      "Training at Epoch 51 iteration 200 with loss 0.34908. Total time 0.74611 hours\n",
      "Training at Epoch 51 iteration 300 with loss 0.21838. Total time 0.74972 hours\n",
      "Validation at Epoch 51 , MSE: 0.24605 , Pearson Correlation: 0.80919 with p-value: 0.0 , Concordance Index: 0.82597\n",
      "Training at Epoch 52 iteration 0 with loss 0.35664. Total time 0.75305 hours\n",
      "Training at Epoch 52 iteration 100 with loss 0.25555. Total time 0.75694 hours\n",
      "Training at Epoch 52 iteration 200 with loss 0.23468. Total time 0.76083 hours\n",
      "Training at Epoch 52 iteration 300 with loss 0.22108. Total time 0.765 hours\n",
      "Validation at Epoch 52 , MSE: 0.24495 , Pearson Correlation: 0.81169 with p-value: 0.0 , Concordance Index: 0.83060\n",
      "Training at Epoch 53 iteration 0 with loss 0.26368. Total time 0.76805 hours\n",
      "Training at Epoch 53 iteration 100 with loss 0.23914. Total time 0.77194 hours\n",
      "Training at Epoch 53 iteration 200 with loss 0.23065. Total time 0.77583 hours\n",
      "Training at Epoch 53 iteration 300 with loss 0.36113. Total time 0.77944 hours\n",
      "Validation at Epoch 53 , MSE: 0.25262 , Pearson Correlation: 0.80910 with p-value: 0.0 , Concordance Index: 0.83162\n",
      "Training at Epoch 54 iteration 0 with loss 0.33183. Total time 0.7825 hours\n",
      "Training at Epoch 54 iteration 100 with loss 0.21798. Total time 0.78638 hours\n",
      "Training at Epoch 54 iteration 200 with loss 0.22286. Total time 0.79027 hours\n",
      "Training at Epoch 54 iteration 300 with loss 0.22588. Total time 0.79388 hours\n",
      "Validation at Epoch 54 , MSE: 0.22959 , Pearson Correlation: 0.82016 with p-value: 0.0 , Concordance Index: 0.83394\n",
      "Training at Epoch 55 iteration 0 with loss 0.21044. Total time 0.79722 hours\n",
      "Training at Epoch 55 iteration 100 with loss 0.32758. Total time 0.80083 hours\n",
      "Training at Epoch 55 iteration 200 with loss 0.23093. Total time 0.80472 hours\n",
      "Training at Epoch 55 iteration 300 with loss 0.29906. Total time 0.80833 hours\n",
      "Validation at Epoch 55 , MSE: 0.23464 , Pearson Correlation: 0.82052 with p-value: 0.0 , Concordance Index: 0.83548\n",
      "Training at Epoch 56 iteration 0 with loss 0.28096. Total time 0.81138 hours\n",
      "Training at Epoch 56 iteration 100 with loss 0.31679. Total time 0.81527 hours\n",
      "Training at Epoch 56 iteration 200 with loss 0.26128. Total time 0.81916 hours\n",
      "Training at Epoch 56 iteration 300 with loss 0.32332. Total time 0.82277 hours\n",
      "Validation at Epoch 56 , MSE: 0.23610 , Pearson Correlation: 0.81632 with p-value: 0.0 , Concordance Index: 0.83857\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 57 iteration 0 with loss 0.21864. Total time 0.82583 hours\n",
      "Training at Epoch 57 iteration 100 with loss 0.30707. Total time 0.82972 hours\n",
      "Training at Epoch 57 iteration 200 with loss 0.22157. Total time 0.83361 hours\n",
      "Training at Epoch 57 iteration 300 with loss 0.33334. Total time 0.83722 hours\n",
      "Validation at Epoch 57 , MSE: 0.24480 , Pearson Correlation: 0.81883 with p-value: 0.0 , Concordance Index: 0.83415\n",
      "Training at Epoch 58 iteration 0 with loss 0.28786. Total time 0.84055 hours\n",
      "Training at Epoch 58 iteration 100 with loss 0.24221. Total time 0.84416 hours\n",
      "Training at Epoch 58 iteration 200 with loss 0.27711. Total time 0.84805 hours\n",
      "Training at Epoch 58 iteration 300 with loss 0.20484. Total time 0.85166 hours\n",
      "Validation at Epoch 58 , MSE: 0.24972 , Pearson Correlation: 0.80807 with p-value: 0.0 , Concordance Index: 0.82962\n",
      "Training at Epoch 59 iteration 0 with loss 0.27630. Total time 0.855 hours\n",
      "Training at Epoch 59 iteration 100 with loss 0.21133. Total time 0.85861 hours\n",
      "Training at Epoch 59 iteration 200 with loss 0.19274. Total time 0.8625 hours\n",
      "Training at Epoch 59 iteration 300 with loss 0.28188. Total time 0.86611 hours\n",
      "Validation at Epoch 59 , MSE: 0.23194 , Pearson Correlation: 0.82241 with p-value: 0.0 , Concordance Index: 0.83427\n",
      "Training at Epoch 60 iteration 0 with loss 0.23291. Total time 0.86944 hours\n",
      "Training at Epoch 60 iteration 100 with loss 0.20232. Total time 0.87305 hours\n",
      "Training at Epoch 60 iteration 200 with loss 0.35366. Total time 0.87694 hours\n",
      "Training at Epoch 60 iteration 300 with loss 0.24147. Total time 0.88055 hours\n",
      "Validation at Epoch 60 , MSE: 0.22348 , Pearson Correlation: 0.82569 with p-value: 0.0 , Concordance Index: 0.83744\n",
      "Training at Epoch 61 iteration 0 with loss 0.26412. Total time 0.88361 hours\n",
      "Training at Epoch 61 iteration 100 with loss 0.22774. Total time 0.8875 hours\n",
      "Training at Epoch 61 iteration 200 with loss 0.20367. Total time 0.89138 hours\n",
      "Training at Epoch 61 iteration 300 with loss 0.29028. Total time 0.895 hours\n",
      "Validation at Epoch 61 , MSE: 0.22958 , Pearson Correlation: 0.82248 with p-value: 0.0 , Concordance Index: 0.83563\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 60 Testing MSE: 0.2912329163566839 , Pearson Correlation: 0.7715275320668576 with p-value: 0.0 , Concordance Index: 0.7784324471918492\n",
      "Training at Epoch 62 iteration 0 with loss 0.2641. Total time 0.90194 hours\n",
      "Training at Epoch 62 iteration 100 with loss 0.27382. Total time 0.90555 hours\n",
      "Training at Epoch 62 iteration 200 with loss 0.28673. Total time 0.90944 hours\n",
      "Training at Epoch 62 iteration 300 with loss 0.23342. Total time 0.91333 hours\n",
      "Validation at Epoch 62 , MSE: 0.22611 , Pearson Correlation: 0.82334 with p-value: 0.0 , Concordance Index: 0.83776\n",
      "Training at Epoch 63 iteration 0 with loss 0.23872. Total time 0.91638 hours\n",
      "Training at Epoch 63 iteration 100 with loss 0.23139. Total time 0.92027 hours\n",
      "Training at Epoch 63 iteration 200 with loss 0.23572. Total time 0.92388 hours\n",
      "Training at Epoch 63 iteration 300 with loss 0.19721. Total time 0.92777 hours\n",
      "Validation at Epoch 63 , MSE: 0.22192 , Pearson Correlation: 0.82723 with p-value: 0.0 , Concordance Index: 0.83876\n",
      "Training at Epoch 64 iteration 0 with loss 0.22151. Total time 0.93083 hours\n",
      "Training at Epoch 64 iteration 100 with loss 0.27449. Total time 0.93472 hours\n",
      "Training at Epoch 64 iteration 200 with loss 0.23083. Total time 0.93833 hours\n",
      "Training at Epoch 64 iteration 300 with loss 0.22032. Total time 0.94222 hours\n",
      "Validation at Epoch 64 , MSE: 0.21472 , Pearson Correlation: 0.83268 with p-value: 0.0 , Concordance Index: 0.84161\n",
      "Training at Epoch 65 iteration 0 with loss 0.21727. Total time 0.94527 hours\n",
      "Training at Epoch 65 iteration 100 with loss 0.28209. Total time 0.94916 hours\n",
      "Training at Epoch 65 iteration 200 with loss 0.26033. Total time 0.95277 hours\n",
      "Training at Epoch 65 iteration 300 with loss 0.24367. Total time 0.95666 hours\n",
      "Validation at Epoch 65 , MSE: 0.22331 , Pearson Correlation: 0.83103 with p-value: 0.0 , Concordance Index: 0.84043\n",
      "Training at Epoch 66 iteration 0 with loss 0.20375. Total time 0.95972 hours\n",
      "Training at Epoch 66 iteration 100 with loss 0.26273. Total time 0.96361 hours\n",
      "Training at Epoch 66 iteration 200 with loss 0.23793. Total time 0.96777 hours\n",
      "Training at Epoch 66 iteration 300 with loss 0.15248. Total time 0.97166 hours\n",
      "Validation at Epoch 66 , MSE: 0.22036 , Pearson Correlation: 0.83019 with p-value: 0.0 , Concordance Index: 0.83816\n",
      "Training at Epoch 67 iteration 0 with loss 0.21465. Total time 0.975 hours\n",
      "Training at Epoch 67 iteration 100 with loss 0.25533. Total time 0.97861 hours\n",
      "Training at Epoch 67 iteration 200 with loss 0.20538. Total time 0.98277 hours\n",
      "Training at Epoch 67 iteration 300 with loss 0.22075. Total time 0.98666 hours\n",
      "Validation at Epoch 67 , MSE: 0.24657 , Pearson Correlation: 0.81182 with p-value: 0.0 , Concordance Index: 0.83373\n",
      "Training at Epoch 68 iteration 0 with loss 0.24983. Total time 0.98972 hours\n",
      "Training at Epoch 68 iteration 100 with loss 0.23059. Total time 0.99333 hours\n",
      "Training at Epoch 68 iteration 200 with loss 0.18336. Total time 0.99722 hours\n",
      "Training at Epoch 68 iteration 300 with loss 0.16855. Total time 1.00083 hours\n",
      "Validation at Epoch 68 , MSE: 0.21898 , Pearson Correlation: 0.83328 with p-value: 0.0 , Concordance Index: 0.84328\n",
      "Training at Epoch 69 iteration 0 with loss 0.24226. Total time 1.00416 hours\n",
      "Training at Epoch 69 iteration 100 with loss 0.22550. Total time 1.00777 hours\n",
      "Training at Epoch 69 iteration 200 with loss 0.22469. Total time 1.01166 hours\n",
      "Training at Epoch 69 iteration 300 with loss 0.24425. Total time 1.01527 hours\n",
      "Validation at Epoch 69 , MSE: 0.21769 , Pearson Correlation: 0.83131 with p-value: 0.0 , Concordance Index: 0.84236\n",
      "Training at Epoch 70 iteration 0 with loss 0.26560. Total time 1.01861 hours\n",
      "Training at Epoch 70 iteration 100 with loss 0.28069. Total time 1.02222 hours\n",
      "Training at Epoch 70 iteration 200 with loss 0.22110. Total time 1.02638 hours\n",
      "Training at Epoch 70 iteration 300 with loss 0.24721. Total time 1.03055 hours\n",
      "Validation at Epoch 70 , MSE: 0.22413 , Pearson Correlation: 0.82478 with p-value: 0.0 , Concordance Index: 0.83917\n",
      "Training at Epoch 71 iteration 0 with loss 0.27727. Total time 1.03361 hours\n",
      "Training at Epoch 71 iteration 100 with loss 0.23139. Total time 1.0375 hours\n",
      "Training at Epoch 71 iteration 200 with loss 0.23531. Total time 1.04166 hours\n",
      "Training at Epoch 71 iteration 300 with loss 0.25370. Total time 1.04555 hours\n",
      "Validation at Epoch 71 , MSE: 0.21934 , Pearson Correlation: 0.83640 with p-value: 0.0 , Concordance Index: 0.84318\n",
      "Training at Epoch 72 iteration 0 with loss 0.21340. Total time 1.04888 hours\n",
      "Training at Epoch 72 iteration 100 with loss 0.18374. Total time 1.05277 hours\n",
      "Training at Epoch 72 iteration 200 with loss 0.23953. Total time 1.05638 hours\n",
      "Training at Epoch 72 iteration 300 with loss 0.22594. Total time 1.06027 hours\n",
      "Validation at Epoch 72 , MSE: 0.22119 , Pearson Correlation: 0.83470 with p-value: 0.0 , Concordance Index: 0.84128\n",
      "Training at Epoch 73 iteration 0 with loss 0.22946. Total time 1.06333 hours\n",
      "Training at Epoch 73 iteration 100 with loss 0.17089. Total time 1.06722 hours\n",
      "Training at Epoch 73 iteration 200 with loss 0.19666. Total time 1.07083 hours\n",
      "Training at Epoch 73 iteration 300 with loss 0.21747. Total time 1.07472 hours\n",
      "Validation at Epoch 73 , MSE: 0.21460 , Pearson Correlation: 0.83307 with p-value: 0.0 , Concordance Index: 0.84043\n",
      "Training at Epoch 74 iteration 0 with loss 0.16769. Total time 1.07777 hours\n",
      "Training at Epoch 74 iteration 100 with loss 0.25771. Total time 1.08166 hours\n",
      "Training at Epoch 74 iteration 200 with loss 0.16211. Total time 1.08583 hours\n",
      "Training at Epoch 74 iteration 300 with loss 0.25681. Total time 1.08972 hours\n",
      "Validation at Epoch 74 , MSE: 0.22687 , Pearson Correlation: 0.83444 with p-value: 0.0 , Concordance Index: 0.84412\n",
      "Training at Epoch 75 iteration 0 with loss 0.17494. Total time 1.09305 hours\n",
      "Training at Epoch 75 iteration 100 with loss 0.22304. Total time 1.09694 hours\n",
      "Training at Epoch 75 iteration 200 with loss 0.21477. Total time 1.10111 hours\n",
      "Training at Epoch 75 iteration 300 with loss 0.22635. Total time 1.105 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Validation at Epoch 75 , MSE: 0.22074 , Pearson Correlation: 0.83783 with p-value: 0.0 , Concordance Index: 0.84515\n",
      "Training at Epoch 76 iteration 0 with loss 0.20472. Total time 1.10833 hours\n",
      "Training at Epoch 76 iteration 100 with loss 0.20590. Total time 1.11194 hours\n",
      "Training at Epoch 76 iteration 200 with loss 0.21572. Total time 1.11583 hours\n",
      "Training at Epoch 76 iteration 300 with loss 0.18849. Total time 1.11944 hours\n",
      "Validation at Epoch 76 , MSE: 0.20668 , Pearson Correlation: 0.84445 with p-value: 0.0 , Concordance Index: 0.84766\n",
      "Training at Epoch 77 iteration 0 with loss 0.25071. Total time 1.1225 hours\n",
      "Training at Epoch 77 iteration 100 with loss 0.22202. Total time 1.12638 hours\n",
      "Training at Epoch 77 iteration 200 with loss 0.24983. Total time 1.13027 hours\n",
      "Training at Epoch 77 iteration 300 with loss 0.20613. Total time 1.13388 hours\n",
      "Validation at Epoch 77 , MSE: 0.20868 , Pearson Correlation: 0.83862 with p-value: 0.0 , Concordance Index: 0.84287\n",
      "Training at Epoch 78 iteration 0 with loss 0.18580. Total time 1.13694 hours\n",
      "Training at Epoch 78 iteration 100 with loss 0.16501. Total time 1.14083 hours\n",
      "Training at Epoch 78 iteration 200 with loss 0.25168. Total time 1.145 hours\n",
      "Training at Epoch 78 iteration 300 with loss 0.22029. Total time 1.14916 hours\n",
      "Validation at Epoch 78 , MSE: 0.21160 , Pearson Correlation: 0.83631 with p-value: 0.0 , Concordance Index: 0.84310\n",
      "Training at Epoch 79 iteration 0 with loss 0.18614. Total time 1.15222 hours\n",
      "Training at Epoch 79 iteration 100 with loss 0.22509. Total time 1.15611 hours\n",
      "Training at Epoch 79 iteration 200 with loss 0.18477. Total time 1.16 hours\n",
      "Training at Epoch 79 iteration 300 with loss 0.25406. Total time 1.16361 hours\n",
      "Validation at Epoch 79 , MSE: 0.20811 , Pearson Correlation: 0.84006 with p-value: 0.0 , Concordance Index: 0.84551\n",
      "Training at Epoch 80 iteration 0 with loss 0.20317. Total time 1.16666 hours\n",
      "Training at Epoch 80 iteration 100 with loss 0.22787. Total time 1.17055 hours\n",
      "Training at Epoch 80 iteration 200 with loss 0.21565. Total time 1.17444 hours\n",
      "Training at Epoch 80 iteration 300 with loss 0.23722. Total time 1.17805 hours\n",
      "Validation at Epoch 80 , MSE: 0.22878 , Pearson Correlation: 0.82116 with p-value: 0.0 , Concordance Index: 0.83718\n",
      "Training at Epoch 81 iteration 0 with loss 0.17636. Total time 1.18111 hours\n",
      "Training at Epoch 81 iteration 100 with loss 0.22477. Total time 1.185 hours\n",
      "Training at Epoch 81 iteration 200 with loss 0.21546. Total time 1.18888 hours\n",
      "Training at Epoch 81 iteration 300 with loss 0.21475. Total time 1.1925 hours\n",
      "Validation at Epoch 81 , MSE: 0.21568 , Pearson Correlation: 0.83215 with p-value: 0.0 , Concordance Index: 0.84430\n",
      "--- Go for Testing ---\n",
      "Up to Epoch 80 Testing MSE: 0.27447329063861514 , Pearson Correlation: 0.7893856029343722 with p-value: 0.0 , Concordance Index: 0.7952656043154311\n",
      "Training at Epoch 82 iteration 0 with loss 0.22434. Total time 1.19944 hours\n",
      "Training at Epoch 82 iteration 100 with loss 0.18688. Total time 1.20333 hours\n",
      "Training at Epoch 82 iteration 200 with loss 0.21925. Total time 1.20722 hours\n",
      "Training at Epoch 82 iteration 300 with loss 0.20205. Total time 1.21083 hours\n",
      "Validation at Epoch 82 , MSE: 0.20649 , Pearson Correlation: 0.84203 with p-value: 0.0 , Concordance Index: 0.84666\n",
      "Training at Epoch 83 iteration 0 with loss 0.23616. Total time 1.21388 hours\n",
      "Training at Epoch 83 iteration 100 with loss 0.21818. Total time 1.21777 hours\n",
      "Training at Epoch 83 iteration 200 with loss 0.20455. Total time 1.22194 hours\n",
      "Training at Epoch 83 iteration 300 with loss 0.22579. Total time 1.22611 hours\n",
      "Validation at Epoch 83 , MSE: 0.20544 , Pearson Correlation: 0.84135 with p-value: 0.0 , Concordance Index: 0.84854\n",
      "Training at Epoch 84 iteration 0 with loss 0.20801. Total time 1.22916 hours\n",
      "Training at Epoch 84 iteration 100 with loss 0.20461. Total time 1.23305 hours\n",
      "Training at Epoch 84 iteration 200 with loss 0.17671. Total time 1.23694 hours\n",
      "Training at Epoch 84 iteration 300 with loss 0.17618. Total time 1.24111 hours\n",
      "Validation at Epoch 84 , MSE: 0.20825 , Pearson Correlation: 0.84182 with p-value: 0.0 , Concordance Index: 0.84779\n",
      "Training at Epoch 85 iteration 0 with loss 0.16269. Total time 1.24388 hours\n",
      "Training at Epoch 85 iteration 100 with loss 0.23859. Total time 1.2475 hours\n",
      "Training at Epoch 85 iteration 200 with loss 0.19933. Total time 1.25166 hours\n",
      "Training at Epoch 85 iteration 300 with loss 0.20402. Total time 1.25583 hours\n",
      "Validation at Epoch 85 , MSE: 0.21867 , Pearson Correlation: 0.83967 with p-value: 0.0 , Concordance Index: 0.85029\n",
      "Training at Epoch 86 iteration 0 with loss 0.16748. Total time 1.25861 hours\n",
      "Training at Epoch 86 iteration 100 with loss 0.22609. Total time 1.2625 hours\n",
      "Training at Epoch 86 iteration 200 with loss 0.23312. Total time 1.26638 hours\n",
      "Training at Epoch 86 iteration 300 with loss 0.53855. Total time 1.27 hours\n",
      "Validation at Epoch 86 , MSE: 0.20486 , Pearson Correlation: 0.84280 with p-value: 0.0 , Concordance Index: 0.84867\n",
      "Training at Epoch 87 iteration 0 with loss 0.26203. Total time 1.27277 hours\n",
      "Training at Epoch 87 iteration 100 with loss 0.18828. Total time 1.27666 hours\n",
      "Training at Epoch 87 iteration 200 with loss 0.18988. Total time 1.28083 hours\n",
      "Training at Epoch 87 iteration 300 with loss 0.21381. Total time 1.285 hours\n",
      "Validation at Epoch 87 , MSE: 0.20701 , Pearson Correlation: 0.84216 with p-value: 0.0 , Concordance Index: 0.85139\n",
      "Training at Epoch 88 iteration 0 with loss 0.18461. Total time 1.28777 hours\n",
      "Training at Epoch 88 iteration 100 with loss 0.22486. Total time 1.29166 hours\n",
      "Training at Epoch 88 iteration 200 with loss 0.19180. Total time 1.29555 hours\n",
      "Training at Epoch 88 iteration 300 with loss 0.30179. Total time 1.29916 hours\n",
      "Validation at Epoch 88 , MSE: 0.20278 , Pearson Correlation: 0.84291 with p-value: 0.0 , Concordance Index: 0.85099\n",
      "Training at Epoch 89 iteration 0 with loss 0.21691. Total time 1.30222 hours\n",
      "Training at Epoch 89 iteration 100 with loss 0.24330. Total time 1.30583 hours\n",
      "Training at Epoch 89 iteration 200 with loss 0.22729. Total time 1.31 hours\n",
      "Training at Epoch 89 iteration 300 with loss 0.20282. Total time 1.31416 hours\n",
      "Validation at Epoch 89 , MSE: 0.21208 , Pearson Correlation: 0.84243 with p-value: 0.0 , Concordance Index: 0.85101\n",
      "Training at Epoch 90 iteration 0 with loss 0.20633. Total time 1.31694 hours\n",
      "Training at Epoch 90 iteration 100 with loss 0.16526. Total time 1.32083 hours\n",
      "Training at Epoch 90 iteration 200 with loss 0.17655. Total time 1.325 hours\n",
      "Training at Epoch 90 iteration 300 with loss 0.17790. Total time 1.32916 hours\n",
      "Validation at Epoch 90 , MSE: 0.20459 , Pearson Correlation: 0.84144 with p-value: 0.0 , Concordance Index: 0.84567\n",
      "Training at Epoch 91 iteration 0 with loss 0.14803. Total time 1.33194 hours\n",
      "Training at Epoch 91 iteration 100 with loss 0.22498. Total time 1.33583 hours\n",
      "Training at Epoch 91 iteration 200 with loss 0.17094. Total time 1.34 hours\n",
      "Training at Epoch 91 iteration 300 with loss 0.15335. Total time 1.34416 hours\n",
      "Validation at Epoch 91 , MSE: 0.20546 , Pearson Correlation: 0.84436 with p-value: 0.0 , Concordance Index: 0.85256\n",
      "Training at Epoch 92 iteration 0 with loss 0.15083. Total time 1.34694 hours\n",
      "Training at Epoch 92 iteration 100 with loss 0.18200. Total time 1.35083 hours\n",
      "Training at Epoch 92 iteration 200 with loss 0.14743. Total time 1.35444 hours\n",
      "Training at Epoch 92 iteration 300 with loss 0.15063. Total time 1.35833 hours\n",
      "Validation at Epoch 92 , MSE: 0.20183 , Pearson Correlation: 0.84524 with p-value: 0.0 , Concordance Index: 0.85194\n",
      "Training at Epoch 93 iteration 0 with loss 0.16184. Total time 1.36111 hours\n",
      "Training at Epoch 93 iteration 100 with loss 0.19767. Total time 1.365 hours\n",
      "Training at Epoch 93 iteration 200 with loss 0.25543. Total time 1.36888 hours\n",
      "Training at Epoch 93 iteration 300 with loss 0.17622. Total time 1.3725 hours\n",
      "Validation at Epoch 93 , MSE: 0.20079 , Pearson Correlation: 0.84676 with p-value: 0.0 , Concordance Index: 0.85245\n",
      "Training at Epoch 94 iteration 0 with loss 0.16707. Total time 1.37527 hours\n",
      "Training at Epoch 94 iteration 100 with loss 0.15241. Total time 1.37916 hours\n",
      "Training at Epoch 94 iteration 200 with loss 0.14370. Total time 1.38305 hours\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Training at Epoch 94 iteration 300 with loss 0.21329. Total time 1.38666 hours\n",
      "Validation at Epoch 94 , MSE: 0.19878 , Pearson Correlation: 0.84927 with p-value: 0.0 , Concordance Index: 0.85370\n",
      "Training at Epoch 95 iteration 0 with loss 0.16531. Total time 1.38944 hours\n",
      "Training at Epoch 95 iteration 100 with loss 0.14263. Total time 1.39333 hours\n",
      "Training at Epoch 95 iteration 200 with loss 0.17631. Total time 1.39722 hours\n",
      "Training at Epoch 95 iteration 300 with loss 0.19201. Total time 1.40083 hours\n",
      "Validation at Epoch 95 , MSE: 0.20042 , Pearson Correlation: 0.84670 with p-value: 0.0 , Concordance Index: 0.85203\n",
      "Training at Epoch 96 iteration 0 with loss 0.13592. Total time 1.40388 hours\n",
      "Training at Epoch 96 iteration 100 with loss 0.22685. Total time 1.4075 hours\n",
      "Training at Epoch 96 iteration 200 with loss 0.16862. Total time 1.41166 hours\n",
      "Training at Epoch 96 iteration 300 with loss 0.19446. Total time 1.41583 hours\n",
      "Validation at Epoch 96 , MSE: 0.20558 , Pearson Correlation: 0.84366 with p-value: 0.0 , Concordance Index: 0.84904\n",
      "Training at Epoch 97 iteration 0 with loss 0.14910. Total time 1.41861 hours\n",
      "Training at Epoch 97 iteration 100 with loss 0.18011. Total time 1.42277 hours\n",
      "Training at Epoch 97 iteration 200 with loss 0.22679. Total time 1.4275 hours\n",
      "Training at Epoch 97 iteration 300 with loss 0.17068. Total time 1.43194 hours\n",
      "Validation at Epoch 97 , MSE: 0.19865 , Pearson Correlation: 0.84654 with p-value: 0.0 , Concordance Index: 0.84831\n",
      "Training at Epoch 98 iteration 0 with loss 0.15297. Total time 1.43555 hours\n",
      "Training at Epoch 98 iteration 100 with loss 0.18461. Total time 1.44027 hours\n",
      "Training at Epoch 98 iteration 200 with loss 0.13304. Total time 1.44472 hours\n",
      "Training at Epoch 98 iteration 300 with loss 0.15918. Total time 1.44861 hours\n",
      "Validation at Epoch 98 , MSE: 0.20061 , Pearson Correlation: 0.84658 with p-value: 0.0 , Concordance Index: 0.84920\n",
      "Training at Epoch 99 iteration 0 with loss 0.19345. Total time 1.45166 hours\n",
      "Training at Epoch 99 iteration 100 with loss 0.16949. Total time 1.45555 hours\n",
      "Training at Epoch 99 iteration 200 with loss 0.22732. Total time 1.45972 hours\n",
      "Training at Epoch 99 iteration 300 with loss 0.17702. Total time 1.46388 hours\n",
      "Validation at Epoch 99 , MSE: 0.23175 , Pearson Correlation: 0.82188 with p-value: 0.0 , Concordance Index: 0.83918\n",
      "Training at Epoch 100 iteration 0 with loss 0.18731. Total time 1.46666 hours\n",
      "Training at Epoch 100 iteration 100 with loss 0.20422. Total time 1.47055 hours\n",
      "Training at Epoch 100 iteration 200 with loss 0.15942. Total time 1.47416 hours\n",
      "Training at Epoch 100 iteration 300 with loss 0.19219. Total time 1.47805 hours\n",
      "Validation at Epoch 100 , MSE: 0.19746 , Pearson Correlation: 0.84799 with p-value: 0.0 , Concordance Index: 0.85310\n",
      "--- Go for Testing ---\n",
      "Testing MSE: 0.25421554566763127 , Pearson Correlation: 0.8074051174803402 with p-value: 0.0 , Concordance Index: 0.8079594479031709\n",
      "--- Training Finished ---\n"
     ]
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYoAAAELCAYAAADHksFtAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjMsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+AADFEAAAZmElEQVR4nO3de7hddX3n8feXhFsETQLRYkIICFWBOoApA+jACD4jRGsoFUuHp1ykk6I4gtipKKVgC15aK8KItinIQIkVRFqpIBa5KRTQcItcxIR7JEC4RSQFuXznj/U7Zp+TfVb2SfbtZL9fz3OevdZvrb3Xd28O+Zz1+/32WpGZSJI0mg16XYAk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Y0R8Z/ldf81It48Yp9rI+L6iHh3Of7KiLgzItp2SXYNHoNCg2gZcFBZ/hxVN8+ewGUAEXE01YXq7gY+APwpsDNwXURsPuK13gUcD3yG6jpci0r7dOB0qvsRHEF1Ub4fRsTbyvbLgFPL8sENNSxrVnBE7F+e8yvgD4EPl5quj4iRl59+E3AG8KXyPpcBF0fE9rWfijQKu540cDLzxYi4raze39jNUy55/QXg3Mz8UEP7zVTX3TkK+HLDy00B3p6Zj404xp80PHcCcAXV9bqOAo7NzOURcV/Z5fbMXLKGsk+lukjcAVnudxARN5aaPkEVVkO2BPbOzMVlv1upwuKDwGfXcBxpNZ5RSMPtCbwWWBARE4d+qMY2fkZ1y9RGN40MCYDS9XNNRDwFvEx1scHfBt48ct81iYjXUA26X5irbopDVndEuwHYZ8RTFg+FRNnvCaozmplIa8EzCmm4oTvB/WCU7c+MWF+tq6hMub0c+D7VGcQy4BWqWUybrEVNU6iu+tqsW+oxYJsRbc1u6friWh5bMiikEZ4qj0dQdRWN9NyI9WaXX/4DqrOIgzLzpaHGckvPZ9eipmfKcX6rybbfYlXNUkcYFBpUL5bHTUe0/wdVGGyfmeet5WtPojqD+E2IRMS+VF0/DzTsN1oNw2Tm8xFxC3BwRJySma+U19wG2Av4v2tZp9QSg0KD6nGqv8QPiYhFwPPAA5n5VET8H+CsiJhGdUe3FVSzmPYBrs3Mb6zhta8AjgP+X0ScSzU2cRLwixH73V0ej4mI86jGMRaN8j2Mk6hmPX03Ir4KbEY102oFq+4pLXWEg9kaSFndj/lPqPr/f0B1u8/fK9v+AXg/1cDzP1GFxWeo/rC6vYXX/j7wMeAdwHep7hx3GNXdzRr3uwM4pRz3+lLDG0d5zSuovqMxGbiI6jab9wDvzHJfdalTvMOdJKmWZxSSpFoGhSSplkEhSaplUEiSahkUkqRaBoUkqZZBIUmqZVBIkmr9f3ns9pDVKXpFAAAAAElFTkSuQmCC\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "drug_encoding = 'Daylight'\n",
    "target_encoding = 'AAC'\n",
    "train, val, test = data_process(X_drug, X_target, y, \n",
    "                                drug_encoding, target_encoding, \n",
    "                                split_method='random',frac=[0.7,0.1,0.2], random_seed = 5)\n",
    "\n",
    "config = generate_config(drug_encoding = drug_encoding, \n",
    "                         target_encoding = target_encoding, \n",
    "                         cls_hidden_dims = [1024,1024,512], \n",
    "                         train_epoch = 100, \n",
    "                         LR = 0.001, \n",
    "                         batch_size = 256\n",
    "                        )\n",
    "model = models.model_initialize(**config)\n",
    "model.train(train, val, test)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.7"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
